ocombe / ocLazyLoad

Lazy load modules & components in AngularJS
https://oclazyload.readme.io
MIT License
2.63k stars 510 forks source link

Unable to lazy load CSS Files in PhantomJS 2.1.1 #332

Open ngulley opened 8 years ago

ngulley commented 8 years ago

When ocLazyLoad is used in a PhantomJS 2.1.1 headless browser you receive a fatal page load error such as the following if ocLazyLoad attempts to load a CSS file:

Error: unable to load css/mweb-product-details-assets.min.css

The browser stops rending when encountering the error so you're left with a blank page.

The JavaScript assets are lazy loaded without any issues. Also when ocLazyLoad is used in a Chrome or Safari browser the JavaScript and CSS assets are lazy loaded without problems.

Click on the following URL to see the output of the PhantomJS 2.1.1 browser when ocLazyLoad tries load load the "css/mweb-product-details-assets.min.css" file:

http://smobilebotch3.sears.com/kenmore-25.4-cu-ft-side-by-side-refrigerator/p-04651123000P

arianerocha commented 7 years ago

I'm having the same issue. Has anyone fixed this problem?