Livid
406.95D
548D

20211003 - 修复了由于 webfont 引起的页面显示延迟

  •  
  •   Livid ·
    PRO
    · Oct 3, 2021 · 4407 views
    This topic created in 1870 days ago, the information mentioned may be changed or developed.

    通过 web.dev 的扫描结果,进而学习到了 font-display: swap 这个新属性的用法,分享给大家 :)

    https://web.dev/font-display/

    7 replies  •  2021-10-10 15:51:34 +08:00
    ByteRan
    ByteRan
    Oct 3, 2021
    1
    这个有意思,还有一种加快页面显示字体的方式->生成当前页面所需要的字体,页面显示的字体就会小很多
    Livid
    Livid
    MOD
    OP
    PRO
    Oct 3, 2021
    2
    @tanranran 之前由于我们引入的一个显示 Apple Logo 的 webfont:

    https://www.v2ex.com/go/watch

    然后页面有时候就会白一下。今天总算是把这个问题给解决了。
    ibx
    ibx
    Oct 3, 2021❤️1
    3
    @Livid 链接的标题,苹果图标乱码了
    ByteRan
    ByteRan
    Oct 3, 2021
    4
    @Livid
    标题乱码了

    bsfx2
    bsfx2
    Oct 3, 2021❤️1
    5
    @ibx
    @tanranran
    引入 Web Font 就是为了网页上能显示出  来…… web font 管不到操作系统。
    Quarter
    Quarter
    Oct 4, 2021 via iPhone
    6
    学习了🥳🥳
    admonition
    admonition
    Oct 10, 2021 via Android
    7
    学习一波,感谢分享
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4537 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 07:40 · PVG 15:40 · LAX 23:40 · JFK 02:40
    ♥ Do have faith in what you're doing.