mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 06:13:54 +00:00
2179d08a8e
Previously, page load executed code that iterated through each image on the page, attached a click listener, and "attached" a Thumbnail object to the element. This execution took 90ms on my low-end phone and seems like it can be replaced with event delegation instead. This will result in less work on the main thread during page load and a more responsive user experience. Additionally: * Remove redundant check of the primary mouse button. Per the "click" event spec [1], this click event "should only be fired for the primary pointer button (i.e. when button value is 0)." * Move initMediaViewer, initRedLinks, initRedLinksCta into same wikipage.content callback as the TOC mutation. [1] https://w3c.github.io/uievents/#event-type-click Depends-On: Ica3e0448e3d687e9c4cf563542dbe44432d196d5 Bug: T241139 Change-Id: Iebb18dfb225b474402c0d8ab5e39c5e9e71d3ad7 |
||
---|---|---|
.. | ||
mediawiki.less | ||
skins.minerva.amc.styles | ||
skins.minerva.base.styles | ||
skins.minerva.content.styles.images | ||
skins.minerva.icons.page.issues.default.color | ||
skins.minerva.icons.page.issues.medium.color | ||
skins.minerva.icons.page.issues.uncolored | ||
skins.minerva.loggedin.styles | ||
skins.minerva.mainMenu.styles | ||
skins.minerva.mainPage.styles | ||
skins.minerva.scripts | ||
skins.minerva.userpage.styles | ||
.eslintrc.json | ||
mobile.startup.stub.js |