Even with asynchronous loading, you don't want to load a script if it's not being used. Depending on the library, we'll load some scripts in the Page Template if they are used commonly across the library, whereas more specialised scripts will be included within layouts. Some scripts will not be included at all by default itf they're not generally needed. Feel free to add and remove scripts from your templates and pages if you're happy with the resulting functionality changes.
Data Attributes and Constructors
As the module grows, we will start to make constructors more easily available so that functions can also be initiated with a new keyword and an options parameter.
See the specific documentation to learn more.
Extending or Callbacks
onClick="" as these will probably attempt to find functions before they are defined.