Phame Blogs Leave it to the prose
Leave it to the prose
Readers Department Development Blog

Extension:Popups (Page Previews) front-end tooling

Written by Jhernandez on Apr 19 2018, 6:11 PM.

Extension:Popups is a MediaWiki extension that shows previews when hovering a link in a popup.

Read more...

mustache.js replaced with JavaScript template literals in Extension:Popups

Written by Niedzielski on Apr 3 2018, 5:21 PM.

The Popups MediaWiki extension previously used HTML UI templates inflated by the mustache.js template system. This provided good readability but added an 8.1 KiB dependency* for functionality that was only used in a few places. We replaced Mustache with ES6 syntax without changing existing device support or readability and now ship 7.8 KiB less of minified uncompressed assets to desktop views where Popups was the only consumer.

Read more...

Beacons

Written by phuedx on Aug 16 2017, 12:58 PM.

The Reading Web team recently discovered a bug in Firefox wherein a load event is fired when Firefox loads certain pages from its Back-Forward Cache (BFCache). To JavaScript on those pages, this event is a second load event (the first having been fired before the user navigated away from the page). This proved to be problematic for the cornerstone of our instrumentation, the EventLogging extension and delayed the deployment of Page Previews for approximately three months.

Read more...
About Leave it to the prose

Updates from WMF's Readers Department.