Page MenuHomePhabricator

Gadget-PrimarySources throws JS error: Uncaught TypeError: async.parallel is not a function
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Call a Wikidata item
  • Open the browser console

What happens?:

JS error is shown (with URL parameter &debug=true)

Uncaught TypeError: async.parallel is not a function
  init https://www.wikidata.org/w/load.php?debug=1&lang=de&modules=ext.gadget.PrimarySources&only=scripts&skin=vector&version=ztntf:651
  <anonymous> https://www.wikidata.org/w/load.php?debug=1&lang=de&modules=ext.gadget.PrimarySources&only=scripts&skin=vector&version=ztntf:675
  jQuery 11
  <anonymous> https://www.wikidata.org/w/load.php?debug=1&lang=de&modules=ext.gadget.PrimarySources&only=scripts&skin=vector&version=ztntf:126

This happens since this week. Maybe related to T343499 / https://gerrit.wikimedia.org/r/c/mediawiki/libs/Minify/+/948986/ ?

The gadget JS files were last edited in April 2021 MediaWiki:Gadget-PrimarySources.js and 2015 MediaWiki:Gadget-PrimarySources-async.js

Please note: The gadget was disabled now.

Event Timeline

Since native Promise is supported now, what about migrating the gadget to that, dropping the Async.js dependency? Including minified JS (the Async.js code in this case) on wiki pages isn’t a best practice anyway.

+1 to @Tacsipacsi. It's probably the best way to go. Would someone have time to do it? Help would very much welcomed