Adlago Posted September 9, 2020 Share Posted September 9, 2020 To increase site performance, and to improve loading speed, I think it's time to remove java script codes used in obsolete browsers. Here is an example from a test - removing these obsolete java scripts will reduce the volume by about 11 kbps. or this will shorten the java script download time by about 150 ms Link to comment Share on other sites More sharing options...
Rikki Posted September 9, 2020 Share Posted September 9, 2020 Those files aren't obsolete - they are the foundation of our framework. What your tool is finding is polyfills for old browsers that libraries we use (such as jQuery) include. Adlago 1 Link to comment Share on other sites More sharing options...
Adlago Posted September 9, 2020 Author Share Posted September 9, 2020 11 minutes ago, Rikki said: Those files aren't obsolete - they are the foundation of our framework. What your tool is finding is polyfills for old browsers that libraries we use (such as jQuery) include. These results appear only in a mobile performance test. Is there a way to reduce javascript for mobile browsers? Link to comment Share on other sites More sharing options...
bfarber Posted September 14, 2020 Share Posted September 14, 2020 We do not deliver different output based on the user agent - we deliver the same output and use responsive design principles to adjust the interface. Link to comment Share on other sites More sharing options...
aia Posted September 15, 2020 Share Posted September 15, 2020 You (IPS) can load polyfills only when they are needed and don't waste the traffic for the majority of browsers. Link to comment Share on other sites More sharing options...
Rikki Posted September 15, 2020 Share Posted September 15, 2020 3 hours ago, Mr 13 said: You (IPS) can load polyfills only when they are needed and don't waste the traffic for the majority of browsers. We don't load (many) polyfills ourselves - they are included with libraries that we use. Those libraries will only execute them when needed, but the code is still sent to the browser since we bundle and minify javascript. Link to comment Share on other sites More sharing options...
Recommended Posts