GeekSky

我使用{display: none;}隐藏了一些元素,发现这些内容虽然隐藏了,但是还会加载。

  •  1
     
  •   GeekSky · May 28, 2020 · 1950 views
    This topic created in 2352 days ago, the information mentioned may be changed or developed.

    这样就白白占用了带宽,增加了页面展现时间。
    请问有啥办法能让隐藏的元素内容不再加载?

    3 replies  •  2020-05-28 16:05:15 +08:00
    zhengdai1990
    zhengdai1990
    May 28, 2020
    1
    怎么可能不加载,都在 html 里面
    GeekSky
    GeekSky
    OP
    May 28, 2020
    2
    @zhengdai1990 额,那只能删除掉相关代码了吗……
    keepeye
    keepeye
    May 28, 2020
    3
    lazy load
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4857 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 07:58 · PVG 15:58 · LAX 23:58 · JFK 02:58
    ♥ Do have faith in what you're doing.