Universeorange.com/Docs/

Priya library Function reference Global functions require

    ready(() => {
        require(String | Array url, Function closure);
    });

String | Array url The url of the file(s) to require
Function closure Code that has to run after the file(s) are required.

Example

    ready(() => {
        require([
            'Js/Custom.js'
        ], () => {
            console.log('Js/Custom.js loaded.');
        });
    });

Console F12

Js/Custom.js loaded.

Last modified: 2021-06-07

© 2021 universeorange.com