Title: Which JS to dequeue?
Last modified: January 8, 2024

---

# Which JS to dequeue?

 *  Resolved [anzgar](https://wordpress.org/support/users/anzgar/)
 * (@anzgar)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/which-js-to-dequeue/)
 * When checking my site with tools like seobility.net, I get warnings that some
   JS files take too long to load. Is there an easy way to find out wether I can
   safely dequeue these JS files?
 * Trial and error should work, but I would really like to know if there is another
   way.
 * Examples for those files are:
   [/wp-includes/js/dist/i18n.min.js](https://www.seobility.net/de/sitebrowser/?url=https%3A%2F%2Fdeinstern24.de%2Fwp-includes%2Fjs%2Fdist%2Fi18n.min.js%3Fver%3D7701b0c3857f914212ef&id=661114)
   [/wp-includes/js/dist/date.min.js](https://www.seobility.net/de/sitebrowser/?url=https%3A%2F%2Fdeinstern24.de%2Fwp-includes%2Fjs%2Fdist%2Fdate.min.js%3Fver%3D936c461ad5dce9c2c8ea&id=661114)
   [/wp-includes/js/dist/components.min.js](https://www.seobility.net/de/sitebrowser/?url=https%3A%2F%2Fdeinstern24.de%2Fwp-includes%2Fjs%2Fdist%2Fcomponents.min.js%3Fver%3Df6e63a4760dcece8b909&id=661114)
   [/wp-includes/js/dist/block-editor.min.js](https://www.seobility.net/de/sitebrowser/?url=https%3A%2F%2Fdeinstern24.de%2Fwp-includes%2Fjs%2Fdist%2Fblock-editor.min.js%3Fver%3Df0bb1e364b792257eb17&id=661114)
 * For example the block editor, I don’t see a reason why that should be loaded 
   for users that are not logged in.
   Any help would be much appreciated, thanks 
   in advance!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwhich-js-to-dequeue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [anzgar](https://wordpress.org/support/users/anzgar/)
 * (@anzgar)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/which-js-to-dequeue/#post-17325496)
 * It looks like this only happens on the shop page for some reason.
 * As this page isn’t really important for my visitors, I might just leave it the
   way it is. However I would still like to know if there is a way to find out which
   JS or CSS files can be dequeued safely.
 * Thanks 🙂
 *  [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/which-js-to-dequeue/#post-17325728)
 * Hi there,
 * those Javascript files should not be loaded outside of the admin.
   So something
   on your site, whether it be a plugin or another function is loading them on the
   frontend.You would need to find what is doing that by disabling plugins and custom
   functions.
 *  Thread Starter [anzgar](https://wordpress.org/support/users/anzgar/)
 * (@anzgar)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/which-js-to-dequeue/#post-17326375)
 * Thanks a lot for that information. Removing the content from that page an readding
   it solved it somehow.
 * Is there however a generic approach on how to find out if a specific JS/CSS file
   is necessary?
 *  [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/which-js-to-dequeue/#post-17326601)
 * You can use the developers tools coverage tab to check to see if 0% of a script
   is being used in a page – see here:
 * [https://developer.chrome.com/docs/devtools/coverage](https://developer.chrome.com/docs/devtools/coverage)
 * But generally you need to know what the script is doing and whether it is necessary.
 * In the same developers tools Network tab you can see the scripts path, it will
   give you an idea whats loading it, eg. a Plugin directory. From which you may
   be able to determine whether its needed on a specific page.
 *  Thread Starter [anzgar](https://wordpress.org/support/users/anzgar/)
 * (@anzgar)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/which-js-to-dequeue/#post-17328275)
 * Alright, so there is no easy way 🙂
   Thanks a lot!
 *  [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/which-js-to-dequeue/#post-17328658)
 * Theres no quick way of doing it.
   I generally audit the network tab to see if 
   new plugins are adding scripts unnecessarily. Then use functions or a plugin 
   like PerfMatters to disable them where they are not required.
 * Glad to be of help.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Which JS to dequeue?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [David](https://wordpress.org/support/users/diggeddy/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/which-js-to-dequeue/#post-17328658)
 * Status: resolved