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

Migrating code from MediaWiki's ResourceLoader to Webpack

Written by Jdlrobson on Mar 13 2019, 3:15 PM.

The lack of tooling or support for tooling has been causing problems in complicated code bases like the codebase for our mobile site, so we carved out a proposal to create a bridge from our existing codebase to a more modern one using Webpack. I'll talk about what we did and why.

Read more...

Minimal MediaWiki for frontend engineers

Written by Jdlrobson on Feb 21 2019, 7:07 PM.

I use OSX. Vagrant has not been kind to me, but I'm hopeful that Docker will make development a lot easier for me in future.
Until then, I use MAMP which provides a pretty easy LAMP setup. I wanted to share it with other frontend engineers as this minimal setup works well for me - it's fast, it minimises the extensions I need to update and most importantly brings me closer to problems with frontend end-users are experiencing.

Read more...

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.