How to tell QWebPage not to load specific type of resources like js, css or png?
I am actually struggling with the same problem, Piotr solution is assuming urls with file extensions, unfortunately this is not always the case.
it is possible toe get mime-type but only after we get the response' and this is offcore to late.
we tried to get the element context requesting the resources, say if it is an
element or to get CSS, but
req.originatingObject()
only gives us a QWebFrame.
i know for example that this was possible in mozilla code.
BTW, turning off javascript and auto load images will prevent loading of images and scripts.