Javascript in Packages
Permalink
Javascript in a packaged blocks js direcory is not loading automatically. Do we have a different way now to load javascript?
@pvernaglia
That's weird I actually had a different problem, the javascript was loading but css files in the packaged block's CSS folder were not loading. I submitted a bug report and Andrew said it was fixed in next version (7.0.2)
view.js and view.css are both loading correctly though.
That's weird I actually had a different problem, the javascript was loading but css files in the packaged block's CSS folder were not loading. I submitted a bug report and Andrew said it was fixed in next version (7.0.2)
view.js and view.css are both loading correctly though.
After working on this some more, I think you are right, it was the missing CSS that was messing up
It seems that you pretty much have to load the script via the Footer. Below is the updated code to add to the controller:
This seems to work, as far as loading the script. However, maybe there's a better way that I don't know of yet. I believe they are still working on the documentation for 5.7 yet.