react-native-mathjax icon indicating copy to clipboard operation
react-native-mathjax copied to clipboard

pre-rendering mathjax content

Open deepakverma4 opened this issue 6 years ago • 6 comments

is there any way to pre-render the data with mathjax, so that user won't see the loading of mathjax content?

deepakverma4 avatar Sep 21 '18 10:09 deepakverma4

please update to 2.0.0 to check if the issue persist

calvinkei avatar Sep 24 '18 05:09 calvinkei

@calvinkei yes the new version is faster. But my issue is to load all the content before displaying them to the user.

current scenario is that if user's internet connecting goes away he may see old latex data. or if the user's internet connection is slow he may have to see that conversion of latex to mathjax equation.

can't we pre-fetch all the equations before displaying them to the user?

deepakverma4 avatar Sep 24 '18 11:09 deepakverma4

updated at 44850fc05b025b4532c5b078d32b407bad0b0bba, please check if it fits your need and I will publish it to 2.0.1 once you confirmed it is solved

it basically hides the content before mathjax is loaded

if the pain point is on internet connection, I am working on the offline version that #6 suggests, which will take long as I don't have much time maintaining this module now (PRs are appreciated!)

calvinkei avatar Sep 25 '18 05:09 calvinkei

i think this hide content until loading complete was available in previous version also. yes my pain point is on internet connection. i'll try to put mathjax scripts in ./assets folder . Let's see if it helps or not.

deepakverma4 avatar Sep 25 '18 07:09 deepakverma4

@dverma4u where ./assets in ios?

truongluuxuan avatar Apr 27 '19 02:04 truongluuxuan

any solution?

shivam0831 avatar Mar 02 '21 06:03 shivam0831