User Details
- User Since
- Nov 25 2014, 3:53 PM (470 w, 4 d)
- Availability
- Available
- IRC Nick
- Sophivorus
- LDAP User
- Sophivorus
- MediaWiki User
- Sophivorus [ Global Accounts ]
Fri, Dec 1
Wed, Nov 29
Tagged the wrong task, sorry.
Mon, Nov 27
Wed, Nov 22
Thu, Nov 16
Wed, Nov 15
I think the issue is that a few lines before (line 817) there's the following line:
Sat, Nov 11
Wed, Nov 8
Nov 1 2023
Oct 27 2023
Oct 24 2023
Sure, makes sense, thanks for your time and answer!
Oct 18 2023
Oct 4 2023
Oct 3 2023
Thanks! I also updated this and now the stats on the page seem up-to-date.
Sep 29 2023
Sep 28 2023
Sep 27 2023
Sep 25 2023
Sep 22 2023
Sep 21 2023
How about a config option for third-party wikis that don't have extremely long articles and may therefore benefit from defer over async?
Sep 20 2023
Sep 19 2023
Yes! This solved the issue that I reported here and had me baffled, thanks! The code you shared didn't quite work for me (perhaps because I'm using REL1_39) but after understanding what's happening and doing a few tweaks, I made it work. Thanks again!!!
Sep 15 2023
I think the problem might have been that the repo didn't have the permissions set up. I just fixed that, see https://gerrit.wikimedia.org/r/admin/repos/mediawiki/gadgets/MiniEdit,access
Sep 14 2023
Apparently it's not so simple, gallery thumbnails and plain images are processed before image thumbnails, so in order to lazy-load everything but the first image thumbnail, the code would be:
$wgThumbCount = 0; $wgHooks['ThumbnailBeforeProduceHTML'][] = function ( ThumbnailImage $thumbnail, array &$attribs, array &$linkAttribs ) { global $wgThumbCount; $class = $attribs['class'] ?? ''; if ( strpos( $class, 'thumbimage' ) !== false ) { $wgThumbCount++; if ( $wgThumbCount === 1 ) { return; } } $attribs['loading'] = 'lazy'; };
Again, this idea can be easily customized.
For what's worth, here's a bit of code anyone can add to their LocalSettings.php to lazy-load just the FIRST image of every page:
$wgThumbCount = 0; $wgHooks['ThumbnailBeforeProduceHTML'][] = function ( ThumbnailImage $thumbnail, array &$attribs, array &$linkAttribs ) { global $wgThumbCount; if ( $wgThumbCount > 0 ) { $attribs['loading'] = 'lazy'; } $wgThumbCount++; };
It can be trivially modified to lazy-load the first TWO images, or whatever. Hope it helps someone!
Sep 13 2023
Sep 12 2023
Sep 6 2023
Sep 5 2023
Sep 4 2023
Hi, good news! I was able to add valid hashtags to links by simply adding a space before the # (so as to satisfy the Twitter's specification of a hashtag) like so:
Sep 3 2023
Sep 1 2023
Aug 29 2023
Aug 25 2023
Aug 22 2023
Aug 21 2023
Hi, thanks for identifying the cause and the temporary fix! Just to keep you updated, now it seems the tool has stopped recording changes since August 18, cheers!
Aug 15 2023
Aug 10 2023
@Samwalton9 Hi! Ping because it seems you fixed it last time T321635? Cheers!
Aug 9 2023
I second this request. Three of my tools (Proveit, Synchronizer and WikiEdit) would benefit from it.