You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 9, 2021. It is now read-only.
# use much faster jsdom mode instead of headless Chrome
59
+
glyphhanger ./test.html --jsdom
60
+
58
61
# Show version
59
62
glyphhanger --version
60
63
@@ -209,6 +212,13 @@ Limit results to text inside of elements that match a CSS selector
209
212
glyphhanger ./test.html --cssSelector="pre, #header, .popUp". If paired with `--onlyVisible`, it will only return elements that are both visible and match the selector
210
213
```
211
214
215
+
### Advanced: use `jsdom` Mode ⚠️
216
+
217
+
JSDOM mode can be useful running against static pages that don’t use a lot of JavaScript generated content. While JSDOM mode can handle some JavaScript generated content, Puppeteer mode should be the safest method for most use cases.
218
+
219
+
JSDOM mode will also be much faster when running against files on a local filesystem rather than URL targets.
220
+
221
+
Read more about [the difference between JSDOM and a full headless browser](https://github.com/jsdom/jsdom/wiki/jsdom-vs.-PhantomJS) (like the default mode that glyphhanger uses: Puppeteer/headless Chrome).
0 commit comments