Running javascript after page is fully rendered

后端 未结 4 661
一向
一向 2020-12-03 10:40

I am trying to create a syntax highlighter script. I tried using my script on a code with 10 thousand lines and all I see is a blank page while it is loading. Everything wil

4条回答
  •  难免孤独
    2020-12-03 11:21

    in case you didn't try this yet, 9 years later …

    $(document).ready(function () {
        window.setTimeout('ctlEmployeeEdit.document_load()', 50);
        });
    

    I guess if you set your time out to 9 years of milliseconds, the page will probably have rendered, but that's just my hypothesis!

提交回复
热议问题