ocLazyLoad icon indicating copy to clipboard operation
ocLazyLoad copied to clipboard

Unable to lazy load CSS Files in PhantomJS 2.1.1

Open ngulley opened this issue 9 years ago • 1 comments

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

ngulley avatar Jul 14 '16 08:07 ngulley

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

arianerocha avatar Jul 13 '17 18:07 arianerocha