Support » Plugins and Hacks » Compact WP Audio Player » Loads scripts and css on all posts, not only on the ones having audio

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mra13

    (@mra13)


    It enqueues the javascript and CSS files using the proper wordpress enque functions so I am not entirely sure what you are talking about. Read this for more explanation:
    http://codex.wordpress.org/Function_Reference/wp_enqueue_script

    This plugin needs javascript files and it includes them using the above mentioned function. If you don’t want javascript then you will have to look for an alternative plugin that doesn’t use javascript.

    You are talking about something else. What I said is that the scripts are loaded on all pages/posts, not only on the ones including sounds. I have 3 posts with sounds, but this plugin filters and includes the scripts in all posts (1000 posts). It makes websites slower than it should. Sorry if I was not very clear in the first post.

    I noticed this thread was “resolved”. Conualfy, were you able to use the wp enqueue script to have it only load on the page(s)/post(s) needed?

    I’m having the same issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Loads scripts and css on all posts, not only on the ones having audio’ is closed to new replies.