Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit a loaded event when loading is complete #47

Open
Primigenus opened this issue May 18, 2016 · 1 comment
Open

Emit a loaded event when loading is complete #47

Primigenus opened this issue May 18, 2016 · 1 comment

Comments

@Primigenus
Copy link
Contributor

In order to implement a fallback in the form of <q42 ...>my fallback here</q42>, the element needs to indicate when it has completed loading.

I'm trying to get this to work:

<q42><img src="q42.png" alt="Q42"></q42>

...such that the image is hidden if the script loads correctly, but if it for some reason fails to load, it falls back to just showing the image. But since the Q42Logo script doesn't indicate when it's done, there's no way to accomplish this.

@Primigenus
Copy link
Contributor Author

(Even better than emitting a loaded event would just be implementing support for a fallback by default, so that whatever is inside the element is shown unless the script loads)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant