on-internet
← Community

Load scripts asynchronously

Stack Overflow ·

I am using several plugins, custom widgets and some other libraries from jQuery. As a result, I have several .js and .css files. I need to create a loader for my site because it takes some time to load. It will be nice if I can display the loader before importing all the: <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script> <script type="text/javascript" src="js/myFunctions.js"></script> <link type="text/css" href="css/main.css" rel="stylesheet" /> ... .... etc. I have found several tutorials that enable me to import a JavaScript library asynchronously. For example, I can do s

Comments

Sign in or sign up to comment and upvote.

No comments yet.