Sasha Firsov
Sasha Firsov
Work around: plug-in to module loader (xhr/workers/etc) and define the alternative variable in document scope. `document.currentModule` with SCRIPT object, for ES6 modules the parentNode would refer to parent module, question...
In embed-page **document.epaCurrentScript** will serve as surrogate.
https://github.com/EPA-WG/embed-page/issues/11
DOM and CSS scoping by shadowDOM most likely would not permit the HTML inside of EMBED-PAGE( to be verified ). If so the solution would require custom anonymous element to...
**CAUSE** There are several fundamental issues of current embed-page implementation: - scripts loaded, parsed, wrapped, and loaded within page thread. Causing causing heavy CPU use in UX thread. - scripts...
**Solutions** - load, parsing, wrapping to be done in separate thread( worker, frame, etc tbd) - execution sequence of epa scripts by browser need to be replaced with controlled prioritized...
**IFRAME** needs the EPA API implementation on container embeddable side along with host-child frame communication. - **same-origin** gives [direct messaging API](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage) - **cross-domain** The frame security restrictions prevent direct messaging...
# **closure** insulation. The biggest challenge resides on 3rd party JS retrieval and running in APE component closure scope. ## CORS restrictions are not applicable if script is included via...
The first part of EPA API appear to be about JS URLs substitution rules. The embedded content JS needs to be served with CORS. If those are not given the...
# 'redirects' URLs mapping For sites which having the trouble with setting CORS headers on SCRIPT urls the proxy which will inject CORS headers will be the solution. `` The...