You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the code runs when the load event is fired (or if it has already fired). This means that you don't get your icons until all images, stylesheets, and annoying adverts have all loaded. My experiments show that my page works when svgxuse runs on DOMContentLoaded event instead. Would it be possible to make this configurable?
Or is there a reason why svgxuse must run on the load event?
The text was updated successfully, but these errors were encountered:
The DOMContentLoaded event doesn't wait for images, CSS, etc. to finish loading. So if you run svgxuse on DOMContentLoaded, it will fetch the referenced SVG files and prepend them to body even when the browser itself supports referencing external SVGs.
Currently the code runs when the load event is fired (or if it has already fired). This means that you don't get your icons until all images, stylesheets, and annoying adverts have all loaded. My experiments show that my page works when svgxuse runs on DOMContentLoaded event instead. Would it be possible to make this configurable?
Or is there a reason why svgxuse must run on the load event?
The text was updated successfully, but these errors were encountered: