[wp-trac] [WordPress Trac] #33322: Theme Installer: spinner animated GIF and high CPU usage
WordPress Trac
noreply at wordpress.org
Fri Oct 16 23:30:35 UTC 2015
#33322: Theme Installer: spinner animated GIF and high CPU usage
--------------------------+-----------------------------
Reporter: afercia | Owner: wonderboymusic
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Themes | Version: 4.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, javascript
--------------------------+-----------------------------
Comment (by afercia):
There's one more thing to consider: the CPU usage '''while''' the spinner
is being displayed. As per the testing run on #33311 applying an animated
GIF as background on a so large area forces browsers to continuously
repaint the whole area. For example, here's what Chrome does. The console
"Enable paint flashing" option will allow you to actually see the re-
painted area. There's a similar option in Firefox's console.
To minimize the high CPU usage, the spinner should be used as background
of the smallest possible area (20px x 20px) as experimented on #33311
using CSS generated content.
[[Image(https://cldup.com/0G29noiXD6.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33322#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list