2 ms·
Awesome list. I also do the following which seems to work well. - Use Inject.JS from Linkedin. It allows you to cache the JS files in HTML5 local storage which
by taligent 15y ago
Awesome list. I also do the following which seems to work well.
- Use Inject.JS from Linkedin. It allows you to cache the JS files in HTML5 local storage which is a huge deal for mobile clients in particular.
- Performance test your CDN. If you are only targeting users in a non US country then a CDN can be significantly slower.
- Make sure to split your domains e.g. images.x.com, css.x.com, js.x.com as it will allow your browser to download more concurrently.
- Look at OpenResty or nginx/lua combined with Redis as used wisely can do gamechanging things to your performance.
- Use Google Analytics Javascript timing to get a longer term picture of where you need to optimise.
- Be careful how you bundle. Many people may already have popular libraries like Google's JQuery version cached already. So consider splitting those out.