Support » Plugin: Asciinema Player » Only load CSS and JS on demand

  • Resolved Stephen Rees-Carter

    (@valorin)


    I’m testing your plugin for use on my site, but I noticed that it seems to load the CSS and JS assets by default on all pages. This seems like an unnecessary inclusion for something I’ll only have on a small number of posts.

    Are you planning on changing it so it only loads these when the player is included, or is that not possible?

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

    (@jessecowens)

    Hi @valorin
    I do have some bugfixes I’m going to be working on this weekend, particularly for the Gutenberg Block and WP 5.3 compatibility. However, in my testing, it should only load the libraries/CSS on posts/pages that contain the shortcode.
    I’ll do some more testing and hopefully push an update this weekend.

    Ah awesome, thanks! I’ll keep an eye out for the update and run some more tests when it’s out. 🙂

    Plugin Author Jesse Owens

    (@jessecowens)

    Hi @valorin – The update released today should resolve this issue for you. Let me know if you have any questions!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Only load CSS and JS on demand’ is closed to new replies.