Replies: 1 comment
-
I think you need to declare the dependencies
No. Not if you registerScript in your code. If you do then you can just usescript |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using Web Assets basic method like this:
I noticed that I couldn't really control the position of js scripts (or css files) in the listing deployed in head when displaying page.
Sometimes, it could be necessary, eg when I want my css file to load AFTER template.min.css
With
HTMLHelper
, js scripts and css files are (almost) always positioned by the end of the listing, as I wish.or
Do I miss something somewhere ?
Other question, related:
Is it mandatory to create a joomla.asset.json file in media/myfiles when I just want to add some js or css to an existing extension?
Beta Was this translation helpful? Give feedback.
All reactions