Ask Your Question
1

Possibility to not have dependency on googleapis.com (China problem)

asked 2012-11-01 19:46:42 -0500

sysko gravatar image

updated 2012-11-01 20:04:17 -0500

As you may know in China some websites are not accessible, and the domain googleapis is one of them (note that it vary a lot from times and province so something which is not accessible today in Shanghai is maybe accessible in Beijing, and maybe tomorrow it will be the opposite)

The bad things is that sometimes the connection is not blocked directly but will instead never get a reply, making askbot to load for ages, waiting for googleapis.com and fonts.google.com to timeout and only then askbot's html will be visible

By using some "noscript" plugin on firefox to block this two domains, the website load fine

So I think it would be great if

  1. one can choose not to use it
  2. in the case one still decide to use, maybe by doing some tricks in the way these resources are loaded, to not make it block the load process

so that I dunno if that will "block" some features, but at least we'll be able to see the content, which is already better than nothing

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-11-01 20:05:50 -0500

sysko gravatar image

updated 2012-11-01 21:45:54 -0500

it seems to me that a beinning of answer to my point 1 is to use

ASKBOT_USE_LOCAL_FONTS = True

but it's written nowhere, and as the template precise "USE_LOCAL_FONTS" it's misleading even if you're reading the code (and have very few knowledge of django). I think it must be included in the settings.py

moreover it does not cover everything (for example traditional.css and askbot/const/__init__.py )

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-11-01 19:46:42 -0500

Seen: 232 times

Last updated: Nov 01 '12