How to load scripts dynamically
-
Hi, the plugin is impressive, great loading speed improvement. But I’ve got this problem on my site: I use a function in my WordPress functions.php that loads some code on the site only if a certain condition is true, something like:
if (condition) { code }.The problem is that serving the cached pages, this function doesn’t work properly anytime, and the code is served into the pages most of times despite of the condition.
Obviously it works fine when I’m logged in and the pages are not cached.Is there anyway to make that function work along with SG plugin? It’s driving me nuts.
Thanks a lot.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to load scripts dynamically’ is closed to new replies.