What I’m trying to do:
I have an HTML file that I read from the server side, and it takes it too much time to load.
I am trying to bypass it with client side with no success. Here is the server side that works:
What I’ve tried and what’s not working:
I am trying to bypass the server side by simply loading the file to asset and then try to read it directly in the client side as follows:
It seems similar but I need the HTML to be in a string format, from what I see in the example and in the docs there is no way to do it, other than using the server side…
Is that correct?
Just string the get_bytes content if necessary. html files are really just fancy text files anyways and just contain text content. When verifying the fix works for html too I printed the output to check and it was all proper string in the console.
Thanks!!!
That solved it all!
Now I wonder how can I put a “Please wait” banner when the app is loading for the first time?
It takes few more seconds to the app to load due to assets loading I assume.