Content deleted Content added
→Interaction with Template:Abbr: resolved |
→Mobile view problems: new section |
||
Line 94:
::You're right; it's too late. extractRegularFiles is efficient: gsub takes 0.32 seconds, some of which lies elsewhere. I suspect the time goes even earlier, in the parse function of Module:Excerpt/portals (which is mainly my fault, though the attribution has become separated). The killer there is retrieving up to 100 file description pages to check for non-free licences. We should probably set files=1-50 rather than 100 in this module but also remove some articles from the list in Portal:Pakistan and similar cases. [[User:Certes|Certes]] ([[User talk:Certes|talk]]) 13:59, 30 September 2020 (UTC)
:I've removed subnational articles such as [[Quetta]] from [[Portal:Pakistan]]. It now renders in 6 seconds, of which only 2 s is the slideshow. As an experiment, I've introduced some variety via a region of the day: one final article of {{tlx|Random item|Islamabad|Lahore|Karachi|Quetta|Peshawar|Northern Pakistan}} rotates the evicted images. [[User:Certes|Certes]] ([[User talk:Certes|talk]]) 14:41, 30 September 2020 (UTC)
== Mobile view problems ==
Slideshows are not yet enabled for mobile view: [[phab:T194887]]. As noted on the template docs, this can cause either only 4 images to be displayed, all images to be displayed in a grid, or all images to be displayed in a stack.
<gallery>
File:Israel_portal_mobile_375x800.png|Small mobile: 4 images
File:Israel_portal_mobile_800x920.png|Larger mobile: all images
File:Mobile view problem climate change.png|Stack of images
</gallery>
The best solution is to enable slideshow mode on mobile, but in the meantime perhaps how this module and its templatestyles handle it can be improved... <small>(pinging {{ping|Moxy|p=}})</small> - <u>'''[[User:Evad37|Evad]]''37'''''</u> <span style="font-size:95%;">[[[d:w:User talk:Evad37|talk]]]</span> 02:35, 5 January 2021 (UTC)
|