{{ document.jslibrary }} – Add JavaScript Library

Inserts a common JavaScript library into the HTML document page. This tag allows you to include widely used JavaScript libraries such as jQuery, jQuery UI, and WordPress utility functions.

Basic usage:

{{ document.jslibrary }}

Usage with parameters:

{{ document.jslibrary(Library) }}

Parameters:

  1. Library (optional) – Select a common JavaScript library to include.
    • jquery – (The jQuery library. The jQuery library..)
    • jquery-ui-core – (The core jQuery UI library. The core jQuery UI library..)
    • jquery-ui-tabs – (The jQuery UI tabs module. The jQuery UI tabs module..)

Example:

{{ document.jslibrary("jquery") }}


What are your feelings

Leave a Reply

Updated on January 9, 2025