Suppress loading of video.js javascript file on pages without video
-
I notice that if I have one post with a video, the video.js file will be loaded not just on that post but on all posts on the site. So if my WordPress site has 100 posts and I add a video to one of those posts then the other 99 posts will load that (unnecessary) javascript file. Is there a way to change it so that the javascript file will only load on posts that actually use it?
I’m really looking for a way that doesn’t require the user to write new php code whenever a new video is added to a specific post.
Thanks for this plugin. It’s very useful.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.