mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

the demo page does not show math formula in my iphone browsers (safari and chrome)

Open ninesunqian opened this issue 3 years ago • 13 comments

the demo page (https://cortexjs.io/mathlive/demo/) does not show math formula in my iphone browsers (safari and chrome)

WechatIMG4 (WechatIMG3)

my phone is iPhone12 iOS 16.1.1(20B01)

ninesunqian avatar May 26 '23 16:05 ninesunqian

Weird. I can’t reproduce this. A few thoughts:

  • the current version of iOS is 16.5
  • does the same thing happen if you try to open it as a regular page (not in “Private” mode)?
  • does the same thing happen with the landing page: https://cortexjs.io/mathlive/ ?
  • do you have a slow or intermittent network connection? The first download could take a while.
  • Do you have JavaScript turned off?

arnog avatar May 26 '23 17:05 arnog

I was able to reproduce on the iOS simulator (which happens to be on iOS 16.2 on my system). The error is occurring using the CSSStyleSheet constructor. According to caniuse, this API became available on iOS 16.4.

mgreminger avatar May 26 '23 18:05 mgreminger

Ah, yes, that makes sense. iOS 16.4 FTW. Or 16.5, really.

arnog avatar May 26 '23 19:05 arnog

It also doesn't work in the Desktop Safari (Mac version 13.2.1, Safari version 16.3) image

vozian avatar May 31 '23 11:05 vozian

@vozian that's right. It's not going to work with any version of Safari that's older than 16.4, regardless of the OS, platform or device.

arnog avatar May 31 '23 14:05 arnog

@arnog Any chance you're planning to add back support for older versions of safari?

timmckague avatar May 31 '23 18:05 timmckague

@timmckague I might consider it, temporarily.

Can you help me understand why updating to a more recent version of Safari is not an option?

arnog avatar May 31 '23 19:05 arnog

@arnog: Thanks for considering it.

Prompting users to update to a more recent version of safari is certainly a possibility. That said it seems like an unpleasant approach given the current adoption rate of safari >=16.4. Based on this data from caniuse, which claims to be up to date as of April 2023, it seems like most safari users are running on <= 16.3.

I'm speculating here, but perhaps given that safari is tied to the OS/iOS version, people might be more resistant to updating than they would be for chrome on a desktop (which just requires the app to be restarted) for example. People with older hardware may be even more resistant or may not be able to update to a new major version.

timmckague avatar May 31 '23 19:05 timmckague

My application uses the MathLive library and the same issues with rendering math text keeps popping up for my users who have older versions of Safari. Many users of mine are students with a wide range of access to up-to-date technology. Asking them to update their OS is not financially possible for many. Support for Safari <=16.3 would be tremendously helpful!

UpygeoSiegel avatar Jun 01 '23 14:06 UpygeoSiegel

I have added, temporarily, a workaround to support older versions of Safari. In general, using the latest version of browsers is highly recommended in order to be protected from malware and other security issues.

The browsers are freely available, so I'm not sure I understand the financial impact this would have on anyone.

It does have a financial impact on me, though :) as I have to spend time and effort to fix and support these outdated browsers.

Speaking of which, if you cannot afford to support the project monetarily, something you can do that wouldn't cost you much is to star the project in GitHub. Thank you for your support!

arnog avatar Jun 01 '23 21:06 arnog

Schools can sometimes be a bit slow in updating their iOS/iPad OS devices to the latest version. The update is centrally controlled, sometimes at the municipality level even, so getting them to speed up a update can be hard. The result is often rather that they stop using us.

If possible I think a good compromise would be if minimum browser version could be noted in the change log. Then we could just hold off on updating mathlive to a new version until sufficient time has passed.

Leon-Lj avatar Jun 07 '23 13:06 Leon-Lj

Well said @Leon-Lj - I think that's a fair assessment.

I did just star the project! Thank you for this amazing library @arnog!

UpygeoSiegel avatar Jun 07 '23 14:06 UpygeoSiegel

mathlive 0.94.7 includes a workaround for this issue

arnog avatar Jun 08 '23 16:06 arnog