domready
domready copied to clipboard
Conflict with require js
Line 7: else if (typeof define == 'function' && typeof define.amd == 'object') define(definition)
create an no name function which then crash the execution of javascript under the environment of requirejs.
this has worked for years and quite possibly a bug with your implementation or the optimizer you're using. unless you can put together a test case i will mark this as won't fix.
I have the same problem when working with requireJs
@cloudgen its very likely because you load the module without using requirejs...(eg. include it directly to the page)
what is the purpose having require js in your env without using it
I included a javascript provided by an advertisement provider which include this module directly without using requirejs (The Advertisement provider assume people using their script without any requirejs).
So, the advertisement script crashed everytime I included in my page. This is the circumstance that I cannot modify the code which was hosted somewhere else. The only solution was I had abandoned the advertisement provider.
looks like this can be closed?
Yes
2016-04-28 21:20 GMT+08:00 Jason Karns [email protected]:
looks like this can be closed?
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ded/domready/issues/41#issuecomment-215420501