Is there any way to define priority for resources in web pages.
e.g. If define the particular css,js or image load first on the web page.
Development Language PHP
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not really, at least not 100%.
JavaScript files are loaded and executed in the order they are specified.
CSS style sheets are loaded asynchronously. That means they load in parallel to other resources, and they are done when they are done. The same goes for images.
If you need to do something after all style sheets and images have loaded, you could use the JavaScript
onloadevent.More about what is executed/loaded in which order in this brilliant answer.