timoxley/scriptloader — pull request #3 by dymonaz (2014-04-08 08:52:34+00:00)
Title: Inserting into body after assigning event handlers

Otherwise, e.g. when the script is already cached, IE may sometimes not fire the `load` event (`readyState` instantly becomes `"complete"`) - it's funny, because IE should not do anything (incl. checks for event handlers!) before the current tick of event loop ends... similar case: http://stackoverflow.com/questions/18414964/load-event-for-iframe-does-not-fire-in-ie

Fixes immediate concerns about #2 - I couldn't care less about IE8 support.