DEV Community

Cover image for Failing is better than not trying

Failing is better than not trying

Chris Bongers on September 08, 2022

I've wanted to optimize my website even more for the longest time. Every weekend I try to dedicate some time to see where I can optimize it even mo...
Collapse
 
cicirello profile image
Vincent A. Cicirello

Have you tried embedding the css in the head of each page? That would save a request. Although downside of that is that browser can't simply cache the css file with the first page visited as visitors navigate around your site.

Collapse
 
dailydevtips1 profile image
Chris Bongers

Yeah it's kind of too much to inline at this stage.
Trying that would then bloat the html load.

I might give it a try to inline everything above the fold though.

Collapse
 
cicirello profile image
Vincent A. Cicirello

Inlining the stuff for above the fold might help.

Collapse
 
clay profile image
Clay Ferguson

Thanks for sharing! It's always helpful to learn about other peoples experiences and/or lessons learned. To most great developers the journey is also the destination! ...no matter how we get where we end up.

Collapse
 
dailydevtips1 profile image
Chris Bongers

Exactly!

I tend to want to forget about mistakes, but they make such good learning points for others and myself 💖

Collapse
 
naucode profile image
Al - Naucode

Good post, it was a nice read, followed and bookmarked!

Collapse
 
dailydevtips1 profile image
Chris Bongers

Thanks a lot 🙏

Collapse
 
andrewbaisden profile image
Andrew Baisden

I agree we need to fail so that we can find ways to improve. Nothing is perfect in life and that gives us a reason to keep trying to be better.

Collapse
 
devangtomar profile image
Devang Tomar

Intriguing 🤔🎈

Collapse
 
shaikmoabdullah profile image
Shaik Mohammad Abdullah

Hey Chris, Thanks for sharing your experience. Please change the spelling of "Unfortunately" under the page-by-page loads heading.

Collapse
 
dailydevtips1 profile image
Chris Bongers

Oh thanks for that! Missed that one 🙏