PageSpeed 相关文档
› 为 NGINX 编译 PageSpeed 支持
› ngx_pagespeed
› Configuring mod_pagespeed Filters
加载性能测试工具
› WebPagetest
› Gomez
leohxj

DOM加载完毕后,是否可以执行动画?

  •  
  •   leohxj · Sep 2, 2013 · 3733 views
    This topic created in 4812 days ago, the information mentioned may be changed or developed.
    网速糟糕的时候,有些图片或视频并没有加载进来,我是否需要判断图片和视频是否加载完毕?图片通过background嵌入的,如何判断其是否加载完毕?
    3 replies  •  1970-01-01 08:00:00 +08:00
    leohxj
    leohxj
    OP
    Sep 2, 2013
    1
    我在MDN上查到load事件:load: the whole document and its resources (e.g. images) have been loaded.

    那么为window添加了load事件之后,还需要检测图片是否加载完毕吗?
    yimity
    yimity
    Sep 3, 2013
    2
    load 之后,就是所有的资源都加在完毕了。不过一般情况下,dom ready 的时候就可以动画了。
    leohxj
    leohxj
    OP
    Sep 3, 2013
    3
    @yimity 所有资源包括img和video吗,CSS中的background嵌入的图片包括吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1327 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 18:57 · PVG 02:57 · LAX 10:57 · JFK 13:57
    ♥ Do have faith in what you're doing.