bibby/Lessigerator

Cross browser issues originate from include() ?

Opened this issue · 1 comments

Lessigerator works fine for the people I works with and myself using Firefox >= 3.0, but as it became public, it was immediately obvious that other browsers were not happy with it.

While trying to debug in IE7 I noticed that the include script that is responsible for loading the dependencies was making it calls out of order.

My intention is like such:
: the head tag begins
: Lessig.js loads that contains include, then includes other scripts
: each dependency is fetched and appended to head
: head ends
: presentation specific code executed

Using alerts and breaks, I noticed that IE7 attempts to run the presentation code before it loaded the required files, which is odd to say the least. Moving some code into onload functions did not help, it still waits to long to append the new scripts. A work-around for this might be to not use include() at all, but add the required files in script tags as you would normally do with javascript (though I find it ugly and unnecessary).

It's a shame really. It is not known yet if this is chrome and safari's problem or not.
In any event, look forward to additional browser support in future updates of this project.

today's commit may have fixed this. need to test at a different location on monday if able