Add a script asset to the current page via a <script> tag
{% add_javascript value attributes %}
attributes
{% add_stylesheet %}
{% add_javascript inline %}
{% add_stylesheet inline %}
Outputs javascript code in an inline script
{% add_javascript inline [uniquename] [= attributes]? %}
attributes
{% end_javascript %}
This method creates a new liquid context for storing and manipulating variables.
{% add_stylesheet %}
{% add_javascript %}
{% add_stylesheet inline %}
Demonstrates how to add Deferred Async Javascript To Body.
Add Deferred Async Javascript To Body
CopyDemonstrates how to add Anonymous Javascript In Place.
Add Anonymous Javascript In Place
CopyDemonstrates how to add inline javascript once to body.
Add inline javascript once to body
CopyDemonstrates how to add Javascript.
Add Javascript
CopyDemonstrates how to inline javascript from template.
Inline javascript from template
Copy