Hi @channel856,
Thanks for using Shortcoder.
I’m afraid that won’t be possible. It is not possible to predict what shortcodes will be used in a page, since page is loaded linearly from top to bottom.
This looks like something beyond the plugin’s scope.
My suggestion would be hardcode the condition on where the script has to be loaded in the header.
Thanks,
Aakash
Hi! Thanks for your answer and sorry for long delay.
Actually I need to load additional js-script in the head section of any page where some shortcode is used.
Is it possible for now or can you add this great feature to future versions?
Hi @channel856,
Right now this feature is not possible. This is something which needs special implementation because we cannot look ahead if a shortcode is used on a page and insert scripts in the header.
I do have this in my todo list. But I cannot promise any time for this feature. For now I can suggest some other plugins like “header and footer” scripts for the same.
Hope you understand.
Thanks,
Aakash