Support » Plugin: PanoPress » wp_enqueue-ing scripts and CSS?

  • Hi,

    is there a change you’ll change the way the plugin is including the panopress Javascript and CSS into WordPress the official and recommended way, i.e. using wp_enqueue_script() and wp_enqueue_style() ?

    The issue is that the Panopress ressources are being loaded into every single WordPress post, while they’re only needed in very few posts and hence causing performance issues and code overhead. When a plugin is using wp_enqueue_script() and wp_enqueue_style() it’s easy to deal with it by using wp_dequeue_script() and wp_dequeue_style() for posts/templates where the plugin is not needed. Without that, it’s pretty impossible.

    And yes, I know, there are wys to defer, async ressources and move them to the footer; but still, the plugin is loaded while not needed on most pages and it’s not compliant with WP standards.

    So, is there a chance this otherwise great plugin will become compliant with WordPress standards using wp_enqueue_… in the next version?

    Thanks and kind regards,
    Franz

  • The topic ‘wp_enqueue-ing scripts and CSS?’ is closed to new replies.