3 ms·
I mean I like easter eggs, but why not make it so that CSS is only downloaded on that page? Adding 286 bytes to every one of the billions of pageviews YT gets e
by Cthulhu_ 3y ago
I mean I like easter eggs, but why not make it so that CSS is only downloaded on that page? Adding 286 bytes to every one of the billions of pageviews YT gets every day seems wasteful.
- xenophonf 3y agoThat would entail adding a branch instruction and risking a cache miss on every single video playback in order to save a couple hundred bytes in a data stream at least four orders of magnitude larger.
- refibrillator 3y agoSpeculating? I think branch predictors would eat this for lunch
- xenophonf 3y agoHence, my use of the word "risk".
- kazinator 3y agoWhy not also show the same video title, thumbnail, content, comments and side bar regardless of the video URL?
- xenophonf 3y agoI mean, it's an Easter egg. These things aren't known for their practicability. If one were to object to this, it's because it pushes unnecessary computational costs on every single end-user device that has to render that CSS since the comparison and branch now happens client-side at page styling time. I wonder how many billions of CPU cycles that's wasted.