Request: only load the plugin files (i.e. the .js) when needed
-
A good plugin technique is to enqueue the script only when it’s needed, which will save bandwidth and potential extra execution time which is better for performance. I believe you can process the content and enqueue only if you detect the item on the page needs the script.
If you do go this route and enqueue scripts and styles on demand, make sure that it works on both individual posts and post lists, like the homepage.
Cheers.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Request: only load the plugin files (i.e. the .js) when needed’ is closed to new replies.