How to load images after loading the main scripts?

Hello! The site has a lot of pictures, and all scripts are included at the end of the page. As a result, when the top of the page already podgruzilo, the user sees the elements, working with ajax, and when you click n them - sometimes they don't work, because the scripts which process hasn't loaded, as due to the flow of images, scripts are loaded slower...
It would be cool if it were possible to load scripts first, and only then start loading images...
June 14th 19 at 19:03
0 answer

Find more questions by tags JavaScriptjQuery