MediaWiki talk:Common.css: Difference between revisions
Reply to both topics |
Cmloegcmluin (talk | contribs) |
||
| Line 18: | Line 18: | ||
: I have been able to reproduce the issue on Chrome, but it works fine on Firefox (both on Android obviously). It might be a browser-specific issue, and it would require further investigating. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 00:41, 7 October 2024 (UTC) | : I have been able to reproduce the issue on Chrome, but it works fine on Firefox (both on Android obviously). It might be a browser-specific issue, and it would require further investigating. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 00:41, 7 October 2024 (UTC) | ||
:: Thanks for reproducing, and for the extra information. I investigated further and found [https://stackoverflow.com/a/22307695/23289414 this StackOverflow answer] which suggests Android Chrome has a unique problem among browsers in that it fails to download fonts unless they're used in an element present on initial render. Perhaps the <code><nowiki>{{bravura}}</nowiki></code> templates render too late, then. If that's the explanation for the problem, then we may be able to solve it by using [[MediaWiki:Common.js]] to add something hidden like the following to every page: | |||
:: <code><nowiki> | |||
$('body').append('<div style="visibility: hidden; font-family: BravuraText;">(loading BravuraText)</div>'); | |||
</nowiki></code> | |||
:: --[[User:Cmloegcmluin|Cmloegcmluin]] ([[User talk:Cmloegcmluin|talk]]) 01:50, 7 October 2024 (UTC) | |||