-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Something like this to load HTML via ajax for use with modals?
async function load(path, into) {
var res = await fetch(path)
res = await res.text()
if (into) {
var el = html(into, res)
qa('script', el, function (script) {
if (!script.loaded) {
script.loaded = true
eval(script.textContent)
}
})
}
return res
}Metadata
Metadata
Assignees
Labels
No labels