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

Ajax load issue: Should shim.css be loaded from relative path? #570

Open
dleffler opened this issue Jun 7, 2016 · 1 comment
Open

Ajax load issue: Should shim.css be loaded from relative path? #570

dleffler opened this issue Jun 7, 2016 · 1 comment

Comments

@dleffler
Copy link

dleffler commented Jun 7, 2016

When I attempt to (re)load webshim to populate a modal dialog, etc... via ajax, the browser spits out warnings/errors about trying to load the shim.css file from an odd path. I've found two fixes for this:

  1. Set 'loadStyles:false' if the instance is doing an ajax load
  2. Rewrite the polyfill.js line where the stylesheet is loaded to include the path

The code change is in line 230 of v1.15.10 and goes from

if(webCFG.loadStyles){
    loader.loadCSS('styles/shim'+(needExtStyles ? '-ext' : '')+'.css');
}

to

if(webCFG.loadStyles){
    loader.loadCSS(path+'styles/shim'+(needExtStyles ? '-ext' : '')+'.css');
}
@yingjun
Copy link

yingjun commented Jun 15, 2016

webshim.setOptions('basePath', );
did you try this?

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

2 participants