5 ms·
better than centralized `$('.special-element').applyDynamicBehaviour()` you control when the script is loaded right? connectedCallback happens per component,
by gryzzly 3y ago
better than centralized `$('.special-element').applyDynamicBehaviour()`
you control when the script is loaded right?
connectedCallback happens per component, not in a centralised manner – so you write the logic for what happens in a place where it happens