Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css load: onload not called in 淘宝客户端 android #481

Closed
yiminghe opened this issue Sep 18, 2013 · 0 comments
Closed

css load: onload not called in 淘宝客户端 android #481

yiminghe opened this issue Sep 18, 2013 · 0 comments
Milestone

Comments

@yiminghe
Copy link
Member

android taobao 客户端,不能动态加载 css 模块
微信客户端以及自带浏览器可以

ua

淘宝客户端: anclient,不支持 link.onload 回调

  var node=document.createElement('link');
  node.rel = 'stylesheet';
  node.href = url;
  node.onload=function(){ alert(1); }
  document.getElementsByTagName('head')[0].appendChild(node)

其他: webkit,支持 link.onload 回调

workaround since 1.3.2

if(navigator.userAgent=='anclient') {
    KISSY.config('forceCssPoll',true);
}
yiminghe added a commit to yiminghe/kissy that referenced this issue Sep 21, 2013
yiminghe added a commit to yiminghe/kissy that referenced this issue Sep 21, 2013
yiminghe added a commit to yiminghe/kissy that referenced this issue Sep 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant