3 ms·
Do they clean up and minify first? The devs at Pinterest and TripAdvisor are jerks about this. Try following this one: <script src="https://www.jscache.co
by markdown 10y ago
Do they clean up and minify first?
The devs at Pinterest and TripAdvisor are jerks about this. Try following this one:
<script src="https://www.jscache.com/wejs?wtype=certificateOfExcellence&uniq=847&locationId=307144&lang=en_US&year=2016&display_version=2"></script>
After the redirects, they serve you a file that is unminified and with 20% comments. I'm not sure if the engineers at these places hate their users, or are just incompetent.
EDIT:
They do: http://platform.twitter.com/widgets.js http://platform.twitter.com/widgets.js
- kalleboo 10y agoWhile not minifying is a bit unprofessional, I'm not sure wasting 1.4 KB counts as "hating your users" in this world of large retina images.
- markdown 10y ago> "hating your users" You're right, I went to far. Not hatred, disregard and carelessness. Contempt maybe. It would take them a couple of hours at most (testing included) to add minification to their build process if they have one (a this stage, one can't be too sure since they don't follow basic web dev best-practice). > 1.4 KB That is for one badge. This is even more madness; they make you download the same js file from a different URL for each badge you want to display. Resorts like to show as many badges as they have to show that they've been highly ranked for a long time. A client of mine who wants to show her little resort has been the topped rank in her area for the past five years has to add 7KB of JS to do it. > This world of large retina images Not outside the first world, and tripadvisor is a global company supporting multinationals and tiny little 2-hut resorts alike. It's very likely they made the same assumptions that you did... which is basically my point... that they have no respect for their users (resorts and web devs). A little internet cafe in Timbuktu doesn't have 7KB of data to waste.