import { scriptOnLoad } from 'ranuts';// Mehrere Skripte und Stylesheets gleichzeitig ladenawait scriptOnLoad([ 'https://example.com/script1.js', 'https://example.com/script2.js', 'https://example.com/style.css',]);console.log('Alle Ressourcen geladen');
import { scriptOnLoad } from 'ranuts';scriptOnLoad(['https://example.com/library.js'], document.body, () => { console.log('Ressourcen geladen, es kann losgehen');});
import { scriptOnLoad } from 'ranuts';async function loadLibrary() { await scriptOnLoad(['https://cdn.example.com/library.js']); // Die Bibliothek ist geladen und einsatzbereit window.Library.init();}