briangonzalez / jquery.adaptive-backgrounds.js

🦎 A jQuery plugin for extracting the dominant color from images and applying the color to their parent.
http://briangonzalez.github.io/jquery.adaptive-backgrounds.js/
6.53k stars 454 forks source link

CORS demo does not work in chrome #17

Closed programming-kid closed 10 years ago

programming-kid commented 10 years ago

i really pulled my hairs for about 3 hrs before discovering that chrome doesn't like cors objects it just hates them . It throws cors policy error every time u try

<img src="remote-image-url" crossorigin="anonymous" />

but FF is really happy to serve it easily without any errors .

The solution to this is to load all javascripts after images. if you put any JavaScript before images chrome throws cors error .

i really don't know how to fix this

briangonzalez commented 10 years ago

@programming-kid

Thanks a ton for the great work here. Very insightful.

But since there is already an open issue for this, I am going to close this one as it is a dup of #11.