Not really a question and possible I need to re-read docs but I have been confused about FlexSlider and Roundabout loading all the time – even if docs and JS files say they should not. They are also only registered in general.php:
// Register scripts — These scripts are only enque’d as needed.
I could not nod to that.
Then I figured out why. “Jump Start Scripts” In theme-functions.php. That little JS files is set up to have ALL JS files as dependencies so as long as that is untouched everything will load. Including the 2 slider scripts even if only registered.
So I can replace themeblvd_include_scripts function. I can change $themeblvd_framework_scripts variable with all the handles used by “jumpstart_scripts”. I can do both and will get my way. But if I just sit and watch everything will load. Might as well enque FlexSlider and Roundabout but then they load – and they should not. ???
If not wrong and if it does not say directly in docs I think it should be added that the easiest way to take full control of all JS files is to first deal with “Jump Start Scripts” theme.js file/action since it fire off so much.
I can see why I did not think so much of theme.js I never paid any attention to it as I use own JS files. So I do not meet the assumption that 1 child theme = 1 new born theme.js = problem vanish.
- You must be logged in to reply to this topic.