Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1992

General Questions/New to Joomla! 5.x • Re: Script in header AND at the end of index.php?

$
0
0
I use joomla.asset and $wa->useStyle('mystyle')->useScript('myscript'); to load the scripts into the document.
Hi. Scripts/syles should be registered before use.
Exemple:

Code:

$wa->registerStyle(...);$wa->useStyle(...);$wa->registerScript(...);$wa->useScript(...);
Or in one line

Code:

$wa->registerAndUseStyle(...);$wa->registerAndUseScript(...);

Statistics: Posted by Pavel-ww — Tue May 14, 2024 12:10 pm



Viewing all articles
Browse latest Browse all 1992

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>