Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ninesunqian opened this issue May 26, 2023 · 13 comments

Comments

@ninesunqian
Copy link

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)

@arnog
Copy link
Owner

arnog commented May 26, 2023

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?

@mgreminger
Copy link
Contributor

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.

@arnog
Copy link
Owner

arnog commented May 26, 2023

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

@vozian
Copy link

vozian commented May 31, 2023

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

@arnog
Copy link
Owner

arnog commented May 31, 2023

@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.

@timmckague
Copy link

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

@arnog
Copy link
Owner

arnog commented May 31, 2023

@timmckague I might consider it, temporarily.

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

@timmckague
Copy link

@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.

@UpygeoSiegel
Copy link

UpygeoSiegel commented Jun 1, 2023

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!

@arnog
Copy link
Owner

arnog commented Jun 1, 2023

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!

@Leon-Lj
Copy link

Leon-Lj commented Jun 7, 2023

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.

@UpygeoSiegel
Copy link

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

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

@arnog
Copy link
Owner

arnog commented Jun 8, 2023

mathlive 0.94.7 includes a workaround for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants