Dynamically Importing Scripts
To import some js
file Dynamically, use yugal.include
method and pass file path, relative to index.html
in it. However, Yugal don't have a method to remove the Dynamically imported script. This can be done manually. Example
yugal.include('./abc.js');
./abc.js
will be imported at the end of <body>
tag.
Last updated
Was this helpful?