[Webkit-unassigned] [Bug 245133] New: Asynchronously load CSS causes extremely slow performance

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 13 05:36:02 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=245133

            Bug ID: 245133
           Summary: Asynchronously load CSS causes extremely slow
                    performance
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mic.gallego at gmail.com

Created attachment 462312

  --> https://bugs.webkit.org/attachment.cgi?id=462312&action=review

High CPU usage

Hi,

I am not sure if this is a regression of Safari 16, but I have found that using the common trick to load a CSS asynchronously causes ton of reflow on Safari 16, which causes the CPU to skyrocket. You can reproduce that here: https://codepen.io/bakura10/pen/bGMwxKB

Apparently, the load event is called over and over, which seems to cause constant reflow.

If we load the CSS without that, the CPU consumption goes back to normal.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220913/2c7d8f9c/attachment.htm>


More information about the webkit-unassigned mailing list