DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Justin Jackson
Justin Jackson

Posted on

Took me 2.5 hours how to speed up this page

Whelp. I spent 2.5 hours trying to optimize images and improve my PageSpeed Insights score...

Only to find that it was a live chat widget was bringing us down to a 76. πŸ€¦β€β™‚οΈ

Once I removed it, our PageSpeed score shot up to a 98. πŸ™„

Video

Google says page speed is important for search rankings. We'll see if this works!

Top comments (1)

Collapse
 
mgrsskls profile image
Michael Großklaus

How was the widget included?

Like this?

<script src="widget.js"></script>

Then try to do this:

<script src="widget.js" async></script>

or

<script src="widget.js" defer></script>

and move it into the head (usually before stylesheets, but depends on the script) if it wasn't there already.

That should make Google pagespeed happier!

🌚 Life is too short to browse without dark mode