isScriptAlready(src: string) {
const found =
performance
.getEntries()
.filter((e) => e.entryType === 'resource')
.map((e) => e.name)
.indexOf(src) !== -1
if (found) {
return true
}
return document.querySelectorAll(`script[src*="${src}"]`).length > 0
}