Either I am missing smth. or using lazy loaded handlers & full JS is kinda complicated:
Is there a simpler way to achieve this?
If not:
Could we have smth. simpler like
?
HTML:
<xf:if is="$xf.development && $xf.fullJs">
<xf:js addon="vendorprefix/addonid" src="vendorprefix/addonid/file.js" />
<xf:else />
<xf:js>XF.LazyHandlerLoader.register('js/vendorprefix/addonid/file.min.js', 'handlername', 'click');</xf:js>
</xf:if>
Is there a simpler way to achieve this?
If not:
Could we have smth. simpler like
HTML:
<xf:js addon="vendorprefix/addonid" src="vendorprefix/addonid/file.js" min="1" lazy="handlername:click" />
Last edited: