Jump to content

User talk:GeneralNotability/mark-locked.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Reduce/optimize # of API queries

[edit]

Hello friend. Thanks for making this script. I was wondering if maybe there was a more efficient way to code it? In my DevTools network tab, it appears to be doing 1 API query per username on a page. For a big page such as https://en.wikipedia.org/w/index.php?title=Talk%3AAl-Rashid_humanitarian_aid_incident&curid=76215306&diff=1211763196, this is a bit inefficient. Perhaps this code could be refactored to grab all usernames on a page, send one API query with multiple usernames, then place the results of that query on all usernames on a page. –Novem Linguae (talk) 09:10, 4 March 2024 (UTC)[reply]