Page MenuHomePhabricator

Enable webp thumbnails on all images for non-Commons wikis
Closed, DeclinedPublic

Description

While looking at the Google Search Console, I noticed that some wikis were prevalent in URLs that get "poor" ratings (eg. > 4 seconds for p75 Largest Contentful Paint). This is easily explained by the fact that speakers of those languages tend to live in areas where internet connectivity is poor.

Wiki-local file pages in particular come up in a lot in those:

Screenshot 2020-12-11 at 18.06.33.png (483×788 px, 58 KB)

I think it's clear that for visitors of those wikis, bad internet connectivity and they could benefit of lot from webp thumbnails. It's also likely that the traffic on those wikis is too low for most of their images to ever hit the current webp threshold.

This is also a good test to see if we can positively influence URLs that are currently marked as "poor" by Google.

Based on the Search Console data, it would make sense to enable webp for all images hosted on the following wikis:

  • sw which hosts around 2000 media files
  • tg 400
  • tk 300
  • bcl 800
  • war 40
  • mai 100
  • or 100
  • bh 50
  • zh 47000

But, honestly, seeing how low these numbers are, I think we can actually afford to do this for every non-Commons wiki. Maybe with the exception of enwiki, which is an outlier with close to 1 million media files. dewiki has 120k, jawiki 70k, frwiki 60k, etc.

Of course we can start with an allowlist initially and roll the change out gradually.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

It seems this is being tracked by performance team so i have removed the operations tag but please add back if you feel this was an error.

@jbond you can't remove the operations tag without also removing the Traffic one. Not sure if it should given @Peachey88's comment above.

Not quite. Enabling WebP on all images everywhere requires us to clean up unused thumbnails for storage space reasons.

Non-Commons media represent a small subset of our media storage and we can afford to generate WebP variants for there, just like we do for "hot" thumbnails, which represent a fraction of all media.

Krinkle subscribed.

Moving to Radar. This remains of interest for awareness, but we're not actively pushing for it as the vast majority of loaded images are Commons-hosted.