calvinkei / react-native-mathjax

Render Mathjax content in React Native Webview
MIT License
34 stars 37 forks source link

pre-rendering mathjax content #14

Open deepakverma4 opened 6 years ago

deepakverma4 commented 6 years ago

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

calvinkei commented 6 years ago

please update to 2.0.0 to check if the issue persist

deepakverma4 commented 6 years ago

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

calvinkei commented 6 years ago

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!)

deepakverma4 commented 6 years ago

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.

truongluuxuan commented 5 years ago

@dverma4u where ./assets in ios?

shivam0831 commented 3 years ago

any solution?