DEV Community

Cover image for A Practical Guide To Optimizing Performance On The Web

A Practical Guide To Optimizing Performance On The Web

Gift Egwuenu on May 07, 2019

The web is continuously evolving and today we have millions of sites on the web and several users waiting to load these sites for one reason or...
Collapse
 
ssimontis profile image
Scott Simontis • Edited

Don't forget about HTTP/2! If your server platform supports it, the number of HTTP requests becomes less relevant. With CDNs and proxies, I have been bitten before by not reading the documentation or thoroughly understanding the platform I was using...the CDN and the web server had some opposing configuration settings which resulted in either a lot of wasted CPU cycles (CDN not supporting caching of resources encrypted by anything but gzip) or safe but effectively useless HTTP cache policies.

I have also learned to give extra scrutiny to third-party marketing/analytics scripts. I have seen plenty of scripts that refuse to be cached and insist on downloading several other scripts. In general, most of the organizations I have worked with are underutilizing their current analytics capabilities...throwing more analytics scripts on the page to generate more data that no one will ever read never helps.

Collapse
 
lauragift21 profile image
Gift Egwuenu

Thanks for adding this point. I totally agree with you.

Collapse
 
remotesynth profile image
Brian Rinaldi

Nice guide here! If anyone is curious, I wrote up a tutorial on dev.to covering some tools to help with the link prefetching you mentioned dev.to/remotesynth/promoting-perce...

Collapse
 
lauragift21 profile image
Gift Egwuenu

Thanks Brian. I read your post and it's nicely written. I found instant.page a few months back and I'm currently using it on my blog!

Collapse
 
pavelloz profile image
Paweł Kowalski

Very good article!

Collapse
 
lennythedev profile image
Lenmor Ld

Nice roundup of concepts and tools. Thanks!

Collapse
 
bayuangora profile image
Bayu Angora

What is the advantage of using defer compared to moving all script from the head to the end of body?