Template:Snippets with JavaScript header

{{#switch: {{languages|Template:Snippets with JavaScript header}}

How to use
You can use these snippets in any resource loader module. This includes those generated by core (such as the   and   module generated from wiki pages) and those in 3>Special:MyLanguage/Manual:Extensions|extensions.

See  for places where you can add those snippets to your site.

Most snippets assume that they are executed after the document is ready: for those cases, make sure that you have a document-ready wrapper in your code. If you don't have one already, use the below:

}}
 * default=