Basic Content Loading
Load an HTML file dynamically into the body:
const app = oLoader();
app.body("./content.html", "b");
app.load();
Loading a CSS File
Load a CSS file into the head:
const app = oLoader();
app.head("./styles.css");
app.load();
Loading a JavaScript File
Load a JavaScript file dynamically:
const app = oLoader();
app.script("./script.js", "head");
app.load();
Using beforeLoad
Execute a function before loading content:
const app = oLoader();
app.beforeLoad(() => console.log("Preparing to load content..."));
app.body("./content.html", "e");
app.load();