From 71f71c5d850367e824f6cfdb720a39bb9a69f29b Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Sat, 21 Nov 2020 17:54:00 +0000 Subject: [PATCH] Add reason for conditional loading logic Former-commit-id: 9baff5719b2d878f02e51bdf607cb1a72fe02761 [formerly 4139cd6326aefe84141baa0352b69c2973d7aa15] [formerly d69845f596cbbc09f0af68db4c6b8648f58e7422] [formerly 8b0958f4018bb50f79e3e49f0dd8ab93f6c31cc3 [formerly 4ac170a1cc9283f5d0ef0e6150ed601f549e13f2 [formerly a208f1d8282699412fda0e2ce34628cbac7d4bac]]] Former-commit-id: 257a6fe718b9f9467d1f3a2792355bc099a545a8 [formerly f1e4a9c954211b8307f11f01893b974b9b8d83e4 [formerly 4077d4f74dfbd58834dea1606c88fc1880e88478]] Former-commit-id: 0f0c346893452cf2b95fbce0e0801c98f0426552 [formerly b16bca6edf39053577a26c43008a45fba067f2c8] Former-commit-id: feb44a4ae38a06fde01fbc502ecd58e55ab84880 --- www/js/lib/uiUtil.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/js/lib/uiUtil.js b/www/js/lib/uiUtil.js index a6a8b834..e504a5c1 100644 --- a/www/js/lib/uiUtil.js +++ b/www/js/lib/uiUtil.js @@ -22,7 +22,8 @@ 'use strict'; // DEV: Please put your RequireJS definition in the rqDef array below, and any function exports in the function parenthesis of the define statement -// (we need to do it this way in order to load WebP polyfills conditionally) +// We need to do it this way in order to load WebP polyfills conditionally. The WebP polyfills are only needed by a few old browsers, so loading them +// only if needed saves approximately 1MB of memory. var rqDef = []; // Add WebP polyfill only if webpHero was loaded in init.js