DEV Community

loading...

Discussion on: How I Got My Website to Load in 1 Second

Collapse
talha131 profile image
Talha Mansoor

Thank you for this beautiful and detailed write-up.

I checked a few pages of your website. You can further improve the speed by lazy loading the images.

Another area of improvement is making fewer HTTP requests. Like you can merge your main.css and syntax.css file, this way browser will have to fetch only one CSS file. You also load three separate JS files, which you can concatenate together into a single file.

Collapse
gabedunn profile image
Gabe Dunn

Netlify supports HTTP/2, which eliminates the need to bundle your files to reduce requests.

Collapse
jeremycmorgan profile image
Jeremy Morgan Author

Thanks! That's among my next steps. I am on the fence about lazy loading but I will be combining CSS and JS even further, as well as pushing some assets out to their own domain/CDN. Right now I'm very happy with Netlify's speed.

Collapse
talha131 profile image
Talha Mansoor

I will be combining CSS and JS even further

Please do write on it when you finish it. I picked some new tools from your post on image optimization, so I would love to pick new tips on combing CSS and JS.

as well as pushing some assets out to their own domain/CDN.

I am curious. Is it necessary? Doesn't Netlify CDN handles all the assets?