steverusso / bigtech.fail

The censorship, propaganda and surveillance from today's tech corporations and governments.
https://bigtech.fail
The Unlicense
5 stars 0 forks source link

refactor/reorganize/uiux: Inline in CSS base64 of 48x48 corpo logos for the sidebar. #502

Closed steverusso closed 3 years ago

steverusso commented 3 years ago

Summary

This scaled the 10 corporation logos in the sidebar down to 48x48 and compressed them. At build time, they are base64 encoded and stored in the CSS file. The obvious downside in this approach is the increase in the size of the main CSS file (an extra 7.47 KB to be exact).

However, for a mere seven and a half kilobytes, this reduced the number of requests (although they were lazy) by 10 and reduced the amount of data in total that is sent by about 52.65 KB (using compressed sizes of Twitter and Mailchimp logos which were not compressed before this PR).