Website is hosted on Firebase.
But the issue is, whenever we go to the website, let's say www.website.com we need to refresh it at least twice in order to load the website.
Update:
Not sure what possibly could be the issue
-
Using Firebase Hosting to host our website, we have a custom URL where it's being re-routed to. (
*1) -
npm run buildto create production build -
deploying via
firebase deploy
Problem:
User tries to open the page in the 1st try it loads nothing but can see the following error:
Uncaught SyntaxError: Unexpected token < firebase-app.js:1
In the 2nd try the page loads correctly.
As listed by Frank in the comments it's not an issue from Firebase then is it something from React (Create-React-App)?
References:
*1 - Have tried both routes, custom route and route provided by Firebase hosting, and the issue happens in both.
from Takes at least 2 refreshes to load a page
No comments:
Post a Comment