I just tried coming at it from a different approach, using nginx to modify the http response to inject the script to the bottom of the head directly. I thought I was on to a winner with that idea, even if it's a bit gross. However... that makes the JavaScript run too early, as none of the AngularJS scripts have been added yet by Lazyload.js