How can I control PhantomJS to skip download some kind of resource?

后端 未结 4 2104
Happy的楠姐
Happy的楠姐 2020-12-13 03:59

phantomjs has config loadImage,

but I want more,

how can I control phantomjs to skip download some kind of resource,

such as css etc...

===

4条回答
  •  盖世英雄少女心
    2020-12-13 04:24

    No way for now (phantomjs 1.7), it does NOT support that.

    But a nasty solution is using a http proxy, so you can screen out some request that you don't need

提交回复
热议问题