Appendix B. Developer Reference

Web Assets

CLS Ad Slot registers its files with Joomla's Web Asset Manager, in media/com_clsadslot/joomla.asset.json:

com_clsadslot.adslot

Style. The slot classes and default heights. Each CLS Ad Slot module activates it as it renders, and the system plugin adds the script and configuration only when it is active, so pages without a slot load nothing from CLS Ad Slot.

com_clsadslot.main

Script, loaded as a module.

com_clsadslot.adsense

Script. The AdSense script itself, registered by the system plugin only when lazy loading is off. If another extension has already registered an asset with this name, CLS Ad Slot doesn't add a second copy.

On This Page