Can we hide javascript loading from the user?

前端 未结 2 1105
时光取名叫无心
时光取名叫无心 2021-01-25 23:35

If I have a page which gets generated using PHP and then modified using JS which runs using:

window.onload=myFunction;

Then the user sees the origi

2条回答
  •  暖寄归人
    2021-01-26 00:28

    OK I found this little nugget of jquery which works a treat:

    $(document).ready(function() {
      //Call your function here
    });
    

提交回复
热议问题