You can use a custom resource loader.
--
You received this message because you are subscribed to the Google Groups "jsdom" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jsdom+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jsdom/54244b0f-1571-4e3a-a2b4-87f3b64e0298o%40googlegroups.com.
You can use a custom resource loader.
From: js...@googlegroups.com <js...@googlegroups.com> On Behalf Of balaji nidadavolu
Sent: Monday, July 6, 2020 10:21
To: jsdom <js...@googlegroups.com>
Subject: option to not load iframes, css and images
Hi,
The option resources: "usable" is loading all scripts along with css, images and iframes while using jsdom.fromFile for loading a html document. Is there an option where I can load only a script and not load css, images or iframes. I am trying to dynamically execute some jquery functions on the html in my body, that does not require to load css, images or iframes. I used a window.close() after my operations, but this seems to be an incomplete solution. Can you please suggest on this.
Thank you.
--
You received this message because you are subscribed to the Google Groups "jsdom" group.
To unsubscribe from this group and stop receiving emails from it, send an email to js...@googlegroups.com.