4 ms·
My steps for better performance: 1. apache gzip rules 2. apache expires headers 3. smaller images with ImageAlpha/ImageOptim 4. javascript to bottom of
by sccxy 11y ago
My steps for better performance:
1. apache gzip rules
2. apache expires headers
3. smaller images with ImageAlpha/ImageOptim
4. javascript to bottom of the page
Simple things to make your webpage load faster.
- Roboprog 11y agoAgreed, although I'm not sure how much #4 matters for a "CRUD" app written in Angular - there's nothing worth seeing until JS runs :-) ... other than a div that says "Loading..." for half a second to a second. Yeah, not great, but it's an app (HUGE government form), not a marketing flyer.
- cpeterso 11y agoIs there any advantage to moving JavaScript to the bottom of the page when most browsers support <script async> and <script defer>?
- Roboprog 11y agoAlso, number 2 REALLY shines when you have concatenated items such as scripts together, so you just check the expiration of "all-the-scripts.js", and only load it once. (apologies to those who already mentioned concatenation, but I thought it worth mentioning what a bonus "cache headers PLUS concatenation" is)