How to make the browser (IE and Chrome) request images before scripts?

后端 未结 5 1914
说谎
说谎 2021-02-05 09:36

Note: If you are reading this for the fist time, you may jump directly to the UPDATE, since it addresses the issue more accurately.

So I got a

5条回答
  •  鱼传尺愫
    2021-02-05 10:11

    We solved this problem using .load inside the .ready jquery call

    something like:

    jQuery(document).ready(function($){
      jQuery('#my_container img').load(function($){
         /* SCRIPT */
      });
    });
    

提交回复
热议问题