site.js: window loading check is not needed