mozilla / tippy-top-sites-deprecated

[deprecated][unmaintained]
6 stars 7 forks source link

Release a new version of tippy-top-sites to npm #38

Closed pdehaan closed 7 years ago

pdehaan commented 8 years ago

Currently it looks like we only have one tippy-top-sites release, v0.1.0, from Apr 1. In a later commit, 69d3b9690b27059836f557b1bd969feb7bbde0ce, we optimized the icons.

TL;DR: Currently we have 97 favicons in Activity Stream and they're an average of 18KB. We should be using the optimized images which are like 10% of that filesize (1.8KB).

We could specify this repo directly in the activity-stream package.json file instead of pinning to 0.1.0 and using npm, but that's total foot-gun territory. 👣 🔫


Here's a crummy report via the activity-stream repo:

$ ls -lash data/content/favicons/images | wc -l
      97

$ ls -lash data/content/favicons/images
40 -rw-r--r--   1 pdehaan  staff    17K Jun  9 15:55 about-com.png
32 -rw-r--r--   1 pdehaan  staff    15K Jun  9 15:55 adobe-com.png
40 -rw-r--r--   1 pdehaan  staff    18K Jun  9 15:55 amazon-com.png
40 -rw-r--r--   1 pdehaan  staff    16K Jun  9 15:55 amazonaws-com.png
40 -rw-r--r--   1 pdehaan  staff    19K Jun  9 15:55 americanexpress-com.png
40 -rw-r--r--   1 pdehaan  staff    18K Jun  9 15:55 aol-com.png
32 -rw-r--r--   1 pdehaan  staff    15K Jun  9 15:55 apple-com.png
40 -rw-r--r--   1 pdehaan  staff    17K Jun  9 15:55 ask-com.png
48 -rw-r--r--   1 pdehaan  staff    22K Jun  9 15:55 att-com.png
32 -rw-r--r--   1 pdehaan  staff    15K Jun  9 15:55 bankofamerica-com.png
...

$ du -sh data/content/favicons
1.6M    data/content/favicons

Optimized images from tippy-top-sites master:

$ ls -lash images | wc -l
     179

$ du -sh images
756K    images

$ git pull
 ...
 images/aa-com.png                  | Bin 17155 -> 2037 bytes
 images/abcnews-go-com.png          | Bin 19049 -> 4190 bytes
 images/about-com.png               | Bin 17306 -> 1924 bytes
 images/accuweather-com.png         | Bin 16347 -> 1300 bytes
 images/adobe-com.png               | Bin 15595 -> 744 bytes
 images/adp-com.png                 | Bin 15838 -> 904 bytes
 images/airbnb-com.png              | Bin 16577 -> 1404 bytes
 images/allrecipes-com.png          | Bin 17420 -> 2579 bytes
 images/amazon-com.png              | Bin 18731 -> 2279 bytes
 images/amazonaws-com.png           | Bin 16800 -> 1342 bytes
 images/americanexpress-com.png     | Bin 19034 -> 3884 bytes
 images/ancestry-com.png            | Bin 16276 -> 1249 bytes
 images/answers-com.png             | Bin 16056 -> 1115 bytes
 images/aol-com.png                 | Bin 18062 -> 3305 bytes
 images/apple-com.png               | Bin 15555 -> 660 bytes
 images/ask-com.png                 | Bin 17524 -> 2306 bytes
 images/att-com.png                 | Bin 22819 -> 7960 bytes
 images/baidu-com.png               | Bin 16033 -> 1066 bytes
 images/bankofamerica-com.png       | Bin 15756 -> 929 bytes
 ...
pdehaan commented 7 years ago

We did this a couple times. Closing.