bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 166 forks source link

Waiting for googleapis.com blocks loading the page #198

Open sgon00 opened 9 years ago

sgon00 commented 9 years ago

In the beginning, I saw an issue titled "Browser gets no response....". I thought that was my issue. Then I followed that instruction and installed genghisapp-3.0.0.dev.gem.

Finally, I figured out what my real problem is. I am in China and google is blocked here. Failing to get http://fonts.googleapis.com/css?family=Rokkitt:400,700|Source+Code+Pro blocks loading the page for more than 2 minutes.

I am not a ruby developer. Normally, failing to get some css resources will not block other page resources to be loaded. I don't know why genghisapp failed to load anything (just blank white page) and wait for this css resource more than 2 minutes. Thanks.

bobthecow commented 9 years ago

I'm sorry, that sounds like an awful user experience.

Browsers actually block until all external CSS files have loaded or timed out. In this case, it's not failing fast (like a 404 would) so it waits until the default browser timeout before failing. I'll look into what I can do about it.

bobthecow commented 9 years ago

In the interim, if you comment out that line from the base template, rebuild, and reinstall the dev gem, you should be able to load it without that huge delay.

sgon00 commented 9 years ago

Got it, thanks a lot. :)