• Resolved grzechus

    (@grzechus)


    Hello, is it possible to force loading plugin files (js/css) only when there is a shortcode on the post/page?

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

    (@pantherius)

    Hi,

    Just updated the plugin and added a feature to include or exclude the plugin files on specified pages/posts only.
    Unfortunately, it is not possible to implement the plugin files when a shortcode is exists as the files added technically before the shortcodes can be checked.

    Best regards,
    Pantherius

    Thread Starter grzechus

    (@grzechus)

    Hi,

    I have a blank page in settings.

    I use AssetCleanup Pro to unload the plugin on all my pages and archives and it works fine. I just need to unload it on posts where I don’t use chart.js as well.

    Thanks.

    Plugin Author pantherius

    (@pantherius)

    Hi,

    Just fixed the issue, please check it again.

    Regards,
    Pantherius

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Loading js/css only when shortcode present’ is closed to new replies.