First time here? Check out the FAQ!
1

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

  • retag add tags

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

sysko's avatar
73
sysko
asked 2012-11-01 19:46:42 -0600, updated 2012-11-01 20:04:17 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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 )

sysko's avatar
73
sysko
answered 2012-11-01 20:05:50 -0600, updated 2012-11-01 21:45:54 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments