Thanks for contributing an answer to Stack Overflow! If this is just for debugging purposes, you should use a better solution like Firebug or any other dev tools included in modern day browsers. How to validate if input in input field has integer number only using express-validator ? I find some solutions in the web, but none meat my needs: The window object has this property: window.performance.navigation.type which can have 3 values: Here is the sample. Which attribute is used to specify an alternate text for an image, if the image is not loaded properly in HTML ? However, the below snippet, which uses just a tiny bit of JavaScript comes to the rescue and will defer any CSS file you want: Copy and paste the above script to your page. Check it out. Asking for help, clarification, or responding to other answers. When writing JavaScript for a web browser, there are times when you want the page to fully load before the code is executed. The JavaScript Tutorial website helps you learn JavaScript programming from scratch quickly and effectively. The mycustom.js file makes use of _spPageContextInfo which will be defined when the site got loaded using mds. While using W3Schools, you agree to have read and accepted our, , ,