kriszyp / xstyle

A declarative, reactive framework that extends CSS

Home Page:http://kriszyp.github.com/xstyle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AMD css load issue at firefox only for latest code

bright-sea opened this issue · comments

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.