jQuery enqueued on every page.

Ticket for: User Verification
0
jQuery enqueued on every page. 1
Matthew
Aug 18, 2025 05:02 PM 1 Answers
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe
Flag(0)

I see that the user verification plugin is enqueuing jQuery on every page on the front end of the site.

Looking at function UserVerification::_front_scripts it calls wp_enqueue_script('jquery');

My understanding is that this is not actually used on every page - so enqueuing it like this is really bad for performance so I wanted to flag it.

I think it's much better to specifying jquery as a dependency of any scripts that require it. This both ensure it's only loaded when needed, and also ensures that dependencies are loaded in the correct order.

It does actually look like you are correctly specifying this as a dependency when needed - so maybe this line can be removed?

0 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
jQuery enqueued on every page. 2
PickPlugins
Aug 24, 2025
Flag(0)
Welcome to PickPlugins Thanks for reporting the issue, we will fix and update plugin soon.
Sign in to Reply
Replying as Submit