Closed Natalie-Dunice closed 8 years ago
Can you please explain your use case for trying to open a CSS file as a webpage?
@JamesMGreene
Sure.
I had been trying to do that after I found that some page load results are failed. Then I enabled debugging by showing requests/response headers. Actually when I load the page, phantomjs loads all its dependencies like js and css files. I supposed that the problem in css file loading.
The page I tried to load is https://sports.bwin.com/en/sports/events/4/1899/3261172/betting/zenit-st-petersburg-fc-nordsj%C3%A6lland
Thanks for any help!
You can't load a CSS file with PhantomJS. This is not supported.
I'm using 1.9.1 version of PhantomJS. And also tried to use 1.9.0 version of PhantomJS and a fresh build of latest master. Phantom does not load css and has status 'fail'. I also tried to use local and other servers like apache. For testing I use this code:
I've launched this on different operation systems and result was the same.