Dynamic scripts loading

Sometimes there is a situation when you need to load a javascript file in an already loaded page. To do this, there is one good solution.

In this example we take jQuery and include new script element to HTML DOM. After that we wait for script loading.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.