Closed j-ro closed 10 years ago
Update here: I'm currently using this to load yepnope:
<script>window.yepnope || document.write('<script src="/assets/yepnope154-min.js"><\/script>');</script>
It would be nice not to use document.write, though, hence the noconflict request.
I'm using yepnope for help loading javascript for widgets I build, so users copy and paste a package of code including the yepnope include, such as:
Users might embed our widgets more than once on a page, so they might have yepnope included more than once. That works fine in everything but IE (testing on IE11), where I get errors like:
and
If I include yepnope only once, this doesn't happen. Suggestions for how to deal with this? Can yepnope be loaded in a no conflict way like jQuery can, so double includes aren't a problem? Other ideas?