mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-01 20:07:38 +02:00
Previously, we were running the "load fonts if needed" machine at the start of every style computation. That was a lot of unnecessary work, especially on sites with lots of style rules, since we had to traverse every style sheet to see if any @font-face rules needed loading. With this patch, we now load fonts once per sheet, right after adding it to a document's style sheet list.
4.2 KiB
4.2 KiB