{{ document.script }} – Add JavaScript file

Inserts a JavaScript file into the HTML document page.. This tag allows you to add external JavaScript files to your WordPress or Joomla site.

Basic usage:

{{ document.script }}

Usage with parameters:

{{ document.script(Link to the file) }}

Parameters:

  1. Link to the file (optional) – URL of the JavaScript file to be included. This should be a full URL to the external JavaScript file you want to include in your document.

Example:

{{ document.script(https://code.jquery.com/ui/1.12.1/jquery-ui.js' type='text/javascript'></script>) }}


What are your feelings

Leave a Reply

Updated on January 9, 2025