ElEditors, Interface administrators, Administrators
85,546
edits
mNo edit summary |
mNo edit summary |
||
Line 468: | Line 468: | ||
/* </pre> */ | /* </pre> */ | ||
/**** | |||
China Area has GFW abandon foreign sites (include Google). | |||
As a result, the Google Adsense will not been displayed when China visitor browse it. | |||
However, keeping trying to connect Google server takes lots of time, which result in EXTREME much time in loading the Ads. | |||
So I use this hack hope to improve speed for Chinese visitors. | |||
****/ | |||
addOnloadHook(function(){ | |||
if(navigator && navigator.languages.search("zh") !== -1) | |||
$(".adsbygoogle").css({"display": "none"}); | |||
}); |