Skip to Main Content

Remove unused CSS from Elementor website manually

Remove Unused CSS in Wordpress
In this step-by-step tutorial, we will learn how to manually remove unused CSS from the Elementor website without breaking the website.
Need help improving your Elementor site speed performance?

15 thoughts on “Remove unused CSS from Elementor website manually

  1. Best article I´ve found that explain how to unload unused CSS from WordPress websites and, to be honest, I´ve found and read over 40 articles about this topic!

    Great job!!

  2. Good video…nice and clear.
    I read the kinsta article, any recommendations specifically for elementor?
    The reasoning behind moving js to the header was to only move what was used as some of the large elementor js scripts only have 5% coverage.

  3. Good article…I’ve been using Dev Tools and Asset Cleanup to remove unwanted CSS/ js but wanted to take it a step further as there are lots of css/ js files which are more than 90% unused. Can you use the same method to move js code into the header?
    I also made a big impact by creating my own icon subset file, preloading it in local fonts in Asset Cleanup and then disabling Font Awesome, Google Fonts & Eicons in code snippets – although you need to override the hamburger menu icon.

  4. That is actually my main concern, JQuery. Assuming my only use of JQuery was in a mobile toggle, wont it be faster to use vanilla JS as opposed to loading the whole JQuery library?

    1. A great point to Disqus but Elementor frontend.min.js and other JS (free and Pro) are depending on JQuery which make it hard to remove.

      If you’re using Asset clean up plugin that I recommended then there are a handful of JavaScript can be removed i.e. font-awesome-4-shim ( FontAwesome 4 backwards compatibility), share-link ( Social share on Lightbox), swiper ( Elementor slider), elementor-sticky ( for the sticky header) etc [To properly disable those JavaScript You need to enable Ignore dependency rule and keep the “children” loaded (recommended)]

Leave a Reply

Your email address will not be published. Required fields are marked *