Skip to content
How to remove unused CSS & JS
Home » Podcast » How to remove unused CSS & JS – The truth & alternatives

How to remove unused CSS & JS – The truth & alternatives

Speed
Speed
How to remove unused CSS & JS - The truth & alternatives
Loading
/

Here’s the shortcut to removing unused Javascript & CSS

Once you test your website with Google’s page speed insights it will tell you to remove them, but here’s the truth, if you’re not a developer, it’s virtually impossible for you to identify and remove them.

Basically, what you’ll have to do is check each and every CSS called on every single page and check how much of it is actually being used and then remove the unused. See? Almost impossible.

Instead, here’s how to avoid the issue:

  • Use external CSS files for pages that have the same styling and elements.
  • Use inline CSS whenever necessary.
  • Avoid using internal CSS.

Alternatively, you can speed up your website by:

Tags:

Leave a Reply

Subscribe to my mailing list

I never spam