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, sald produces code like this for images:
'img/hero1.png' : function(module) {
var img = new Image();
img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAArElEQVQ4jWNgGHGAEcZInv3/PyUGzU1lZIQbmDz7//8flx9R5DIOXTmGuamMjIzUMAzZUCaqmIQERg2kHFA/2cAEqJqwcQGYyzl05RgYGBgYYGyYZmxg8EcKVgP1fIob8IVp8uz///V8ihuwyTFjM8zUv6f+x+VHDH9efWRgYGBgYBHnZ2BgYGD48+ojHMvbhTr8/f+F8eWt4weQ9WMNXFy2o4NLW3qJUkcRAACG/UtF0Jd+kAAAAABJRU5ErkJggg==";
module.exports = img;},
When setting an Image's src to an http: URI, the image may or may not be loaded until its onload event fires. We need to test if this is also ever the case with data: URIs, and -- if so -- change the loading code.
The text was updated successfully, but these errors were encountered:
I found this, though it's old enough the results are likely not still valid. The simplest solution seems like it would be to make the function spin in a loop until onload gets called, but that's awfully hacky.
Currently, sald produces code like this for images:
When setting an
Image
's src to an http: URI, the image may or may not be loaded until itsonload
event fires. We need to test if this is also ever the case with data: URIs, and -- if so -- change the loading code.The text was updated successfully, but these errors were encountered: