]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Provide a mechanism to load any random JS file via dojo.require()-ish syntax.
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Dec 2010 16:02:41 +0000 (16:02 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Dec 2010 16:02:41 +0000 (16:02 +0000)
commit0712c566b68a3dcb6457eed8d34a34cd82f61ad1
tree030347f377c212ca7dfb7d372f334ecbf705c15f
parentd029d6b37b3f00e801aa6dc0be88e38b1c0111a7
Provide a mechanism to load any random JS file via dojo.require()-ish syntax.

Why would we want to do such a thing, you might ask?

Well, the short answer is that Firefox hates pages that have more than one script block (inline is worse than tag) that contains pre-onLoad XHR.  So, this allows us to pull the actual loading of JS from the same domain as the page into an inline block.  This allows us to eliminate the WSOD on FF by pulling all (dangerous) JS into a single, final inline block, after which we don't care if the DOMContentLoaded event fires -- that's when it should fire, structurally -- but in FF it may fire for a different reason (bug) than it should (fell of the end of the page in the rendering engine).

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18964 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/web/js/dojo/openils/Util.js