• The JS and CSS files required to make the slider work should not be present if a slider is not defined in a page. This degrades website performance for no reason.

    The enqueue process should only happen if a shortcode is processed.

Viewing 1 replies (of 1 total)
  • Plugin Author Fabio Rinaldi

    (@fabiorino)

    Hi, thank you for your suggestion. It is not possible to include the CSS and JS files only when the shortcode is processed, because the user could use the PHP function crellySlider(“myalias”). Nevertheless it is still something I can look into.

Viewing 1 replies (of 1 total)
  • The topic ‘Assets are loaded on all public pages’ is closed to new replies.