AMD css load issue at firefox only for latest code
bright-sea opened this issue · 0 comments
bright-sea commented
Use xstyle as a css load plugin for a while and everything was perfect, but these days, when I try to update xstyle to latest, and there is a strange issue at firefox only, chrome and IE are Ok,
Here is a very simple script can be used to reproduce this issue:
<script>
var dojoConfig={
async: true,
baseUrl: ".",
packages: [
{name:'dgrid',location: './jslib/dojo/dgrid'},
{name:'put-selector',location: './jslib/dojo/put-selector'},
{name:'xstyle',location: './jslib/dojo/xstyle'}
]
};
</script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojo/dojo.js"></script>
<script type="text/javascript">
require([
"xstyle/css!./test.css"
], function(){
});
</script>
At firebug console, it report a script error at dojo.js, no any effective clue.
open network tab, found that after get css.js, load-css.js, test.css, it continue to try to get a "none.js" file from server and failed at here.