1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00
uBlock/platform
Raymond Hill 89fd76ac39
use image data instead of paths for browser icons
When using paths, platform implementations of setIcon typically
will fetch the resource then convert to image data internally.
It is preferable for uBO to do this conversion itself as it can
be done only once at launch time.

With chromium-based browsers, using image data eliminate the
incessant network traffic to fetch browser icons as reported
in the extension's dev tool, meaning a good chunk of overhead
is eliminated.

Also, use optimal icon sizes, as of now both chromium and firefox
prefers 16px instead of 19px, and 32px instead of 38px.
2018-05-07 19:03:50 -04:00
..
chromium use image data instead of paths for browser icons 2018-05-07 19:03:50 -04:00
firefox use image data instead of paths for browser icons 2018-05-07 19:03:50 -04:00
opera use image data instead of paths for browser icons 2018-05-07 19:03:50 -04:00
safari Compress the icon PNGs with zopflipng (#3458) 2018-04-15 06:30:40 -04:00
webext use image data instead of paths for browser icons 2018-05-07 19:03:50 -04:00