Reader
  • Home
  • About
  • Deals
  • Services
  • Contact

Remove unused scripts & styles on WordPress pages | For faster load

Last updated on August 9th, 2018 by Gabriel Livan

Some time ago, I mentioned about Plugin Organizer and the benefits of loading plugins on pages when we only need them as we want to decrease page size and make our WordPress pages load faster, especially if we use a cache plugin such as W3 Total Cache.

However, there are situations when we need a plugin on a page or we use a theme, but some of the CSS and JavaScript files are not needed. Imagine a contact page where you only have some text and a form and you are using a theme that loads plenty of useless CSS and JavaScript files. Not ideal for our website visitors that should enjoy a faster page load.

I’ve decided to write my first official free plugin and share it with the WordPress community.

WP Asset Clean Up scans the page you’re editing, detects the loaded scripts and styles and shows them in a list where you can choose the ones that you don’t want to load.

wp asset clean up background

What are the benefits of using this plugin?

  • The HTTP requests on your website will decrease thus saving you bandwidth (good, if you don’t have unlimited with your host) and your pages will load faster
  • In case there are conflicts between scripts (from plugins/themes) that are loading on the same page, you can remove the ones that you don’t need, thus minimising the risk of JavaScript errors. If you’re a developer, you know how much headache you can have when you’re debugging errors on a page that have 20 .js files loaded from various plugins (and you only need 5 of them).
  • The HTML source code will be smaller, cleaner and easier to read when you’ll need to find something.
  • The Apache log files will also be smaller and easier to read since less requests will be made to the server.

This plugin is powerful in combination with a cache plugin that also combines the remaining loaded assets (.css and .js files) to minimize the number of HTTP requests.

Filed Under: WordPress

About Me

Gabriel LivanHey, there! I'm Gabriel Livan, Web Developer, Blogger and Internet Marketer. I love making fast, secure and scalable web applications, running and travelling around the world. I blog about WordPress, site speed & security and quality tools for web professionals. Read more

What are you looking for?

Categories

  • AJAX (22)
  • Deals (10)
  • Design (30)
  • eBooks (2)
  • Flash (19)
  • Freebies (11)
  • General (62)
  • Giveaways (1)
  • Graphics (27)
  • HTML & CSS (35)
    • Frameworks (9)
  • JavaScript (160)
    • Frameworks (8)
    • jQuery (89)
    • MooTools (14)
  • Page Loading Speed (2)
  • Photoshop (3)
  • PHP (113)
  • Reviews (8)
  • SEO (6)
  • Statistics (2)
  • Web Tools (13)
  • WordPress (27)
    • Plugins (15)
    • Snippets (4)
    • Tools (2)
    • Tutorials (6)

Copyright © 2026 · BitRepository.com - All Rights Reserved

  • Home
  • About
  • Contact