Is this a bad implementation of wp_enqueue_script for conditional usage?
To circumvent this, you can use strpos() with the_posts hook, which gets fired before wp_head. But one of the drawbacks is that its an extra pass at the data. You’re essentially doing the same inside the callback you’re hooking onto wp_head, i don’t see the difference.. (please clarify if you think otherwise).. Whether you hook … Read more