https://bugzilla.wikimedia.org/show_bug.cgi?id=30825
--- Comment #2 from Neil Kandalgaonkar <[email protected]> 2011-09-09 05:05:25 UTC --- (In reply to comment #1) > Can you clarify what you mean about "because of how .append() is implemented > in > jQuery, also triggers loading and executing of the script via AJAX"? > > It seems to do a low-level DOM appendChild, which shouldn't trigger any > XMLHTTPRequest-related stuff at all... Follow the domManip() call, you'll see that ultimately it gets to clean(), which records the tag in a "scripts" variable if it's a script. And then, in domManip(), it calls evalScript on all detected scripts, which loads the source URL via ajax - synchronously! All this happens before it even gets to the standard DOM appendChild(). This guy speculates on why it does this, in the jQuery forums: http://api.jquery.com/append/#comment-67912032 - he thinks it's something to get around IE oddities when loading scripts. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
