User Details
User Details
- User Since
- Sep 1 2020, 7:32 AM (190 w, 5 d)
- Availability
- Available
- LDAP User
- Steve Shin
- MediaWiki User
- Unknown
Sep 2 2020
Sep 2 2020
Steve_Shin added a comment to T261019: [OTRS]: Article images above the fold not loading at first.
Hi, it seems that the image is lazy loaded with javascript.
↓ The first time when page was loaded.
<figure class="mw-default-size pcs-widen-image-ancestor"> <a href="./File:Lorem_Ipsum_-_WYSIWYG_en_Latex_-_tekst_als_paden.svg" class="pcs-widen-image-ancestor"> <span class="pcs-widen-image-override pcs-lazy-load-placeholder pcs-lazy-load-placeholder-pending" style="width: 640px;" data-class="pcs-widen-image-override" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lorem_Ipsum_-_WYSIWYG_en_Latex_-_tekst_als_paden.svg/640px-Lorem_Ipsum_-_WYSIWYG_en_Latex_-_tekst_als_paden.svg.png" data-width="640" data-height="480" data-data-file-width="800" data-data-file-height="600"> <span style="padding-top: 75%;"></span> </span> </a> <figcaption>... content left out ...</figcaption> </figure>
↓After you scrolled the page,
<figure class="mw-default-size pcs-widen-image-ancestor"> <a href="./File:Lorem_Ipsum_-_WYSIWYG_en_Latex_-_tekst_als_paden.svg" class="pcs-widen-image-ancestor"> <img class="pcs-widen-image-override pcs-lazy-load-image-loaded" src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lorem_Ipsum_-_WYSIWYG_en_Latex_-_tekst_als_paden.svg/640px-Lorem_Ipsum_-_WYSIWYG_en_Latex_-_tekst_als_paden.svg.png" width="640" height="480" data-file-width="800" data-file-height="600"> </a> <figcaption>... content left out ...</figcaption> </figure>
Check out https://meta.wikimedia.org/api/rest_v1/data/javascript/mobile/pcs for the js source and search for "pcs-lazy-load-placeholder".
Sep 1 2020
Sep 1 2020
Steve_Shin added a comment to T261027: [OTRS]: Unable to link to commons link with umlauts from article.
hello, I just found the % character in the url got wrongly encoded.
func resolvingRelativeWikiHref(_ href: String) -> URL? [ URL+LinkParsing.swift ]