你们可以这样做,而不要 j笑,你也可以用 j子撰写一些法典,以确保该页已经准备好。
You can add a big div in the first lines of your page html:
<head></head>
<html>
<body>
<div class="bigFullScreen"></div>
.......... the rest of the page html
</body>
</html>
并且用javascript:
$(function () {
$( .bigFullScreen ).hide();
});
OR:
$(document).ready(function () {
$( .bigFullScreen ).hide();
});
之前的html和j Query将确保大碎块看起来是第一件事,而且当网页的所有html都成为“ j”功能时,就会隐藏。
UPDATE: You can also wait untill all the html including all the images get ready:
http://amrelgarhy.com/blog/how-to-tell-when-images-have-loaded/