Check if jQuery is enqueued and load it conditionally
-
There are 2 issues in the current version:
1. You’re using jQuery again, but you’re not checking if it’s enqueued or not. I have a light theme with no jQuery, just plain vanilla JS. So jQuery isn’t available. In this case, the plugin should enqueue jQuery.
2. Version 1.0.5 included an improvement to load JS conditionally when GF was present. That seems to be gone now. I see it load on all pages, even without GF present. A quick scan through the code, I don’t see anything related to conditional loading.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Check if jQuery is enqueued and load it conditionally’ is closed to new replies.