check every 100ms until document is loaded, then initialise resize.js