网页加载如何让页面按顺序加载 ?不闪烁
emerge is a?page load coordinator.
normally, when a?web page loads, elements appear in?random order, causing unpleasant flashing. with emerge, you have fine control over this:
without emerge
with emerge (click demo to?replay)
网站建设
with emerge, you don’t write javascript. instead, you specify the?desired behavior declaratively. this includes order, timing, loading indicators and?particular animations.
new in?version 1.3video support, emerge-replay to?replay animations.
setup and?basic usageadd the?following to?the?<head> of?your page:
<script src=/path/to/jquery.js></script>
<script src=/path/to/emerge.js></script>
now any element with class=emerge will fade in?after its contents are loaded:
<div class=emerge>
... show this only when it is ready ...
</div>
emerge takes care of all <img /> tags and?images used in?css (backgrounds, list-style-images and?so on), as?well as?videos inserted with the?<video /> tag.
see the?documentation for?detail.
http://ilyabirman.net/projects/emerge/ ? 详细效果超好看页面