Show HN: React PWA – A scalable Progressive Web Application foundation
reactpwa.com
reactpwa.com
Hard to understand the architecture when there is so many moving parts which makes me not want to use it for my own stuff. Because if I don't know how it works how can I fix/change it when I have to? Also the loader icons last for worryingly long time when I'm running it on my localhost. Which means the caching isn't working as it's supposed to or should it really take that long to load a single webpage? Not trying to attack on anyone here, just observing.
How is your serviceWorker configured? The problem I have had with them is the N+1 (or sometimes more) times it takes to reload changes which is infuriating to me and I've stopped using them altogether since the benefits aren't that great (for me at least).
Maybe if you could bootstrap with this step by step it would be easier to get to know the structure a little better. So say you could first bootstrap à la create-react-app with bare minimum to get things rolling and then add on caching features which there seems to be plenty of.
Regarding performance, Please try building and running the application. Development mode is not good for measuring performance. The site https://www.reactpwa.com & https://demo.reactpwa.com are built with the same boilerplate and are performing really nice. Any inputs here are appreciated.
If you visit this page on mobile and start to scroll down while it's still loading, you'll have to scroll down multiple time because the loaded content resets the scrollbar (Firefox on Android)
Top comment: 'Impressive engineering on the whole stack'
Really?
"I use React over Angular because it is so small! Also here are my 2 MB of 3rd party modules that are loaded directly on the home view, that the other frameworks come with and lazy load when needed".
Looks like less than 200kb of JS. And the initial page load is less than 30kb HTML/CSS.
Still, it seems perfectly possible to integrate this boilerplate with create-react-app using custom scripts if anyone is interested
I guess there is a difference between highly scalable and highly scaled.
Indeed. Direct link to GitHub project: https://github.com/Atyantik/react-pwa
I refreshed, and got a Cloudflare page with a banner at the top saying "This page (https://www.reactpwa.com/) is currently offline. However, because the site uses Cloudflare's Always Online™ technology you can continue to surf a snapshot of the site." The bottom of that page where the "snapshot of the site" presumably should be is a differently branded 502 error page.
Sorry, can you please check again?
edit: nevermind, reading more of the github README.md I realize the site itself is a PWA (make sense) and you probably need a server and not a static site like gh-pages.
If you're interested in a React-based static site generator that does that: https://github.com/fiatjaf/sitio
Suppose you visit only example.com/about-us page then why should the server load example.com, example.com/faq, example.com/blog code together with it?
I hope you got the point of code-splitting. :)
React Router depends on a ton of libraries and thus has a huge impact on your build size (not to mention your disk while developing).
But maybe because they have "React" in the name and have got some network effects everybody keeps using and recommending them?
...
Aww, this is such a mess. I am sorry but this project is making me think twice before using it.
Look at the creators website... php tags visible https://www.atyantik.com/
A lot of comments on slow loading and site not being available. I appreciate your desire to use and share new technology, but this might be too early for this project.
Wish you luck!
By the way the issue was with the server and not the boilerplate.