i came across issue on website styling on page messed in ie. boss told me because css bundle being rendered contains css files different directories, checked , did. similar below:
    bundles.add(new stylebundle("~/path/subpath/all").include(                  "~/path/subpath/filename.css",                  "~/path/subpath/filename1.css",                  "~/path/subpath/filename2.css",                  "~/path/subpath/filename3.css",                  "~/path/subpath/anothersubpath/filename.css",                  "~/path/subpath/anothersubpath/filename1.css",                  "~/path/adifferentsubpath/filename.css"));   he said bundling couldnt work this, must have files of same directory in bundle, split them out below:
bundles.add(new stylebundle("~/path/subpath/all").include(              "~/path/subpath/filename.css",              "~/path/subpath/filename1.css",              "~/path/subpath/filename2.css",              "~/path/subpath/filename3.css"));  bundles.add(new stylebundle("~/path/subpath/anothersubpath/all").include(              "~/path/subpath/anothersubpath/filename.css",              "~/path/subpath/anothersubpath/filename1.css"));  bundles.add(new stylebundle("~/path/adifferentsubpath/all").include(              "~/path/adifferentsubpath/filename.css"));   this worked , fixed our issue in ie. ok onto questions:
- was boss correct? can not bundle files different folders?
 - if correct, why break in ie? , why must bundle files same directory?
 - if not correct have been issue? , why splitting out bundle have fixed it?
 
for older versions of ie, @ least < 10 there known restrictions
the number of css , script files ie can load - might issue if you're running site in debug mode bundles don't bundled.
if that's not case have more 4,096 selectors in file???
Comments
Post a Comment