How to hold page render until an AJAX call completes?

前端 未结 3 1230
梦毁少年i
梦毁少年i 2021-01-18 13:52

I know that the huge advantage of doing AJAX calls is that the rest of the page can load and be ready for the user before a certain element is quite ready yet. But I have a

3条回答
  •  灰色年华
    2021-01-18 14:22

    You can set the display of your wrapper element to none and then change it to block after the ajax request returns.

提交回复
热议问题