cujojs / curl

curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.
https://github.com/cujojs/curl/wiki
Other
1.88k stars 216 forks source link

link! with a blank css file causes the iPad to halt #129

Closed SimplGy closed 12 years ago

SimplGy commented 12 years ago

So this is super obscure and I haven't isolated it into a test case yet... but we found that if you load in a blank .css file using the link! plugin, it halts all execution with no errors on the ipad or ipad simulator.

All other browsers and devices we tested (webkit desktop and android) work fine.

No idea why this happens, but we burned some hours on trying to figure out what was causing our page to stop loading. Hoping this helps someone else.

Clarification: Blank css file can have any number of lines in it, or comments. If that's all that's in there, the ipad won't load it. But if you add even a single rule, like "* {}", the ipad will load the page.

unscriptable commented 12 years ago

Have you tried the css! plugin in the dev branch? https://github.com/cujojs/curl/blob/dev/src/curl/plugin/css.js

That should fix it until 0.7 is released later this week.

SimplGy commented 12 years ago

What?! You've actually come across this issue? That is awesome, John.

I think we'll just not include blank css files for the time being, but it's incredible that this is a known issue. :)