Lessons while building a static website

I loved designing & developing websites in my free time. One place, I always experiment with new web tools is on my profile. Recently, I started designing and coding another personal website for an event and here are some important take ways from t…


This content originally appeared on DEV Community and was authored by Vidyasagar Machupalli

I loved designing & developing websites in my free time. One place, I always experiment with new web tools is on my profile. Recently, I started designing and coding another personal website for an event and here are some important take ways from the effort

Tools

Whenever you are designing or developing a website, lighthouse is your performance buddy. The tool gives you invaluable metrics and best practices.

vidyasagarmsc.github.io

Minification

CDN is a good to have but if you are building a static website, I would recommend minifying the CSS, Javascript, and compress the images.

Webp

.webp is an image format that gives you looseless compression for your images. My websites loading time increased by 40% after moving from jpeg,png —> webp

Resource hints

Try using resource hints - preload, prefetch, preconnect to improve your website’s performance. Check this awesome article on Nitropack to understand when to use preload vs prefetch vs preconnect.

Lazy load

Lazy load your images, fonts, iframes (embed), Javascript, CSS if and only when needed. Check MDN documentation

Embedded Tweet:

I have been designing and coding a personal website and here are some important take ways #thread #CSS #performance

— Vidyasagar Machupalli (@vidyasagarmsc) May 14, 2023

Short posts

Check my other short posts and shower your love - #shortposts


This content originally appeared on DEV Community and was authored by Vidyasagar Machupalli


Print Share Comment Cite Upload Translate Updates
APA

Vidyasagar Machupalli | Sciencx (2023-05-14T19:54:49+00:00) Lessons while building a static website. Retrieved from https://www.scien.cx/2023/05/14/lessons-while-building-a-static-website/

MLA
" » Lessons while building a static website." Vidyasagar Machupalli | Sciencx - Sunday May 14, 2023, https://www.scien.cx/2023/05/14/lessons-while-building-a-static-website/
HARVARD
Vidyasagar Machupalli | Sciencx Sunday May 14, 2023 » Lessons while building a static website., viewed ,<https://www.scien.cx/2023/05/14/lessons-while-building-a-static-website/>
VANCOUVER
Vidyasagar Machupalli | Sciencx - » Lessons while building a static website. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/05/14/lessons-while-building-a-static-website/
CHICAGO
" » Lessons while building a static website." Vidyasagar Machupalli | Sciencx - Accessed . https://www.scien.cx/2023/05/14/lessons-while-building-a-static-website/
IEEE
" » Lessons while building a static website." Vidyasagar Machupalli | Sciencx [Online]. Available: https://www.scien.cx/2023/05/14/lessons-while-building-a-static-website/. [Accessed: ]
rf:citation
» Lessons while building a static website | Vidyasagar Machupalli | Sciencx | https://www.scien.cx/2023/05/14/lessons-while-building-a-static-website/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.