iandeboisblanc / VRwikiMuseum

MIT License
14 stars 1 forks source link

Fix issue where images don't load like >50% of the time #21

Closed iandeboisblanc closed 8 years ago

iandeboisblanc commented 8 years ago

Seems to occur when you return to the same page for a second time--either by navigating away and back or by exiting and re-entering 3D. Related to: https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL#Cross-domain_textures

iandeboisblanc commented 8 years ago

Fixed. Issue can be avoided by reordering the properties on the image tags used to load the assets ...not sure why.

WRONG: <img src=url crossOrigin='anonymous' />

RIGHT: <img crossOrigin='anonymous' src=url />