Loading: make cross-browser compatible