sfbrigade / datasci-earthquake

MIT License
0 stars 1 forks source link

Slow Load to Blank Screen on locahost:3000 #99

Open AdamFinkle opened 1 week ago

AdamFinkle commented 1 week ago

Describe the bug Anna and I were testing the app and discovered that, whether you run npm run dev or docker compose up, the frontend on localhost:3000 behaves unexpectedly. First, it hangs for a while, loading over several seconds, only to return a blank screen. Then, if you refresh the page, it pretty quickly returns the QuakeSafe page. This behavior occurs only when the cache is cleared.

To Reproduce Steps to reproduce the behavior:

  1. Launch the app with npm run dev or docker compose up
  2. Clear your cache
  3. Go to localhost:3000
  4. See that the page takes a while to load
  5. After it loads, see that only a blank screen is loaded

Expected behavior The app to open immediately.

nickvisut commented 1 week ago

Looking into this a little bit and it seems like ~both~ dev ~and prod~ server "view source" ~don't~ doesn't have much in <body>. Hmm. Not sure if related. There are also some console errors.