JavaScript file in every webpage
-
Hi, thanks for the great plugin and the continous support and update.
I noticed that the ics-calendar-js-extra.js file gets loaded in every webpage, regardless if there is a ics-calendar shortcode or not.
I think it would be better for webpage speed to load it only where there is a shortcode.
I don’t know to do it, but I found a post which I think it describes how to do it: https://www.wpexplorer.com/load-scripts-shortcode/#:~:text=How%20to%20Load%20Your%20Script,function%20inside%20your%20add_shortcode%20function.Thanks again,
Lena
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘JavaScript file in every webpage’ is closed to new replies.