Sloppy Loading JavaScript on all pages
-
I have a plugin that specifically dequeues the jQuery UI sortable as it causes issues with my custom post type list table (which is due to sloppy plugins enqueuing jQuery UI sortable on every admin page), and it seems you are loading your
wpum-admin-js
javascript on every single admin page as well, which causes javascript errors on pages that specific dequeue the jQuery UI sortable, and cause all javascript to stop running.I see in your codebase you check the screen for your other styles and scripts, is there a reason you didn’t do the same for your
wpum-admin-js
script?I don’t think you should be loading your javascript on every page as situations like this, and i’m sure others, will have issues … plus there’s no reason to load javascript on every page as that creates additional unnecessary load time.
For now I just have to dequeue your script when my page is loaded, but it’s something you should look into as there may be issues with other plugins that have to do the same as mine.
Just thought you should know …
- The topic ‘Sloppy Loading JavaScript on all pages’ is closed to new replies.