But printing out the characters onto the page, and calculating what those pages would weight isn't the same thing as the change in weight for that ordering of bytes in memory vs a blank page. Where electrons have an infinitesimal but non-zero mass, memory (RAM or storage) thus weighs differently when full of ones vs. zeros. A gzipped copy of PrismJS thus weights somewhere between when the memory is empty vs when it is full. Which, for a 16 MB dimm, is roughly 1.46 x 10^-20 kg, or 14.6 yoctograms. Which is close too, but not literally nothing. For a gzipped copy of PrismJS weighing in at 2 kb, we get 1.87 x 10^-27 kg or 18.7 zeptograms.<p>Where a feather's weight is measured in grams, a feather is
0.4 * 10^21 times the weight of PrismJS, or a feather weighs (a <i>lot</i>) more. So their claim is <i>true</i>.<p>Interestingly enough, the same applies to electric cars. Full car batteries weigh an infinitesimally larger amount than empty ones. For a 50 kWh Tesla, we're looking at 1.8 nanograms. Which for a battery pack that weighs 324Kg (~750 lb) is less than a rounding error.<p><a href="https://physics.stackexchange.com/questions/34421/does-the-mass-of-a-battery-change-when-charged-discharged#:~:text=Yes%2C%20the%20total%20mass%20of,light%2C%20is%20the%20conversion%20factor" rel="nofollow noreferrer">https://physics.stackexchange.com/questions/34421/does-the-m...</a>.