dimlau
V2EX  ›  问与答

在页面内引用一个不存在的 CSS 文件

  •  
  •   dimlau · Dec 12, 2010 · 5075 views
    This topic created in 5706 days ago, the information mentioned may be changed or developed.
    会延缓页面加载的速度么?
    4 replies    1970-01-01 08:00:00 +08:00
    MC
        1
    MC  
       Dec 12, 2010 via iPhone
    这么做的用意是啥-.-
    Livid
        2
    Livid  
    MOD
    PRO
       Dec 12, 2010
    可以用 Safari 的 Web Inspector 看到各组件消耗的时间。
    dc
        3
    dc  
       Dec 12, 2010
    理论上是不会的。文件不存在会返回 404,而浏览器并不会去重复请求。
    westup
        4
    westup  
       Dec 13, 2010
    如果这个css里面引用了不存在的背景图片,是会的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3081 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:18 · PVG 22:18 · LAX 07:18 · JFK 10:18
    ♥ Do have faith in what you're doing.