Loading...
load global scripts when mounting the component
where:
src: javascript type resource to inject into document.head
src
done: optional , callback when called at the end of the script load
done
status: script load status
status
const src = "https://code.jquery.com/jquery-3.6.0.min.js"; const done = ()=> console.log( $ ); const status = useScript(src, done);