We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af2bd3d commit 01b82f7Copy full SHA for 01b82f7
src/index.ts
@@ -147,6 +147,9 @@ export default class IncludeFragmentElement extends HTMLElement {
147
148
load(): Promise<string> {
149
observer.unobserve(this)
150
+ // We mimic the same event order as <img>, including the spec
151
+ // which states events must be dispatched after "queue a task".
152
+ // https://www.w3.org/TR/html52/semantics-embedded-content.html#the-img-element
153
return task()
154
.then(() => {
155
this.dispatchEvent(new Event('loadstart'))
0 commit comments