Generate critical css for your web pages
MIT License
Bot releases are hidden (Show)
#320 - check if viewport is defined (thanks simllll)
#343 - fix crashes when element doesn't have style attribute (thanks lucasrla)
#344 - add page goto option for puppeteer (thanks bv-sumit)
And dependabot upgrades. See all changes:
https://github.com/pocketjoso/penthouse/compare/v2.3.2...v.2.3.3
Published by pocketjoso about 4 years ago
#310 - fixes incorrect case sensitivity for font-family declarations, which could cause @font-face declarations to be incorrectly filtered out from the critical css, when usage had non-matching case.
Published by pocketjoso about 4 years ago
#305 - interceptedRequest.url should be a function call
#303 - fix(browser): call getBrowser each time
Published by pocketjoso over 4 years ago
#302 - bump puppeteer. (to 2.1.1
)
Note: Advised minimum node version (package.json.engines) was increased from 8
to 8.16
.
Published by pocketjoso over 4 years ago
see #300 for details.
Also included dependency security fix: #297
Published by pocketjoso about 5 years ago
#291 - Properly test min-max media queries for critical CSS inclusion
(dev) dependency upgrades.
Published by pocketjoso over 5 years ago
Released as [email protected]
.
Published by pocketjoso over 5 years ago
End of life for Node 6 is coming soon, bumping minimum required node version to 8.
To keep using penthouse on Node 6, stay on an 1.x version.
Published by pocketjoso over 5 years ago
most notably [email protected].
Published by pocketjoso over 5 years ago
de57e060737681e7b8e50d12f658cee9a402e25e - handle uncaught exceptions from launching puppeteer browser
Published by pocketjoso almost 6 years ago
Just taking the latest release from puppeteer.
https://github.com/pocketjoso/penthouse/commit/68976e45c8817db536ef76f1f60c8f9bf947fd65
Published by pocketjoso almost 6 years ago
Fixes a race condition issue where the browser instance penthouse re-uses between parallel executions could be closed unexpectedly. See https://github.com/pocketjoso/penthouse/pull/279 for more details.
Published by pocketjoso almost 6 years ago
Published by pocketjoso about 6 years ago
One of the things the renderWait
prop can be useful for is to wait extra for things to load before taking the first screenshot. For no particular reason this was not possible before (the screenshot was taken before renderWait
- now this was changed.
Published by pocketjoso about 6 years ago
Bumping minor because of 28f39f15315950e1c8f6eebed09fdc81446aafee:
Penthouse used to override and set exit code 0
via exit listeners, even if parent process was killed with another exit code. Someone could have relied on this, although I would argue it's a bug. Now Penthouse no longer overrides the exit code.
Published by pocketjoso about 6 years ago
Primarily a puppeteer upgrade to 1.8.0.
Published by pocketjoso about 6 years ago
6c8a5ab workarkound for https errors and setRequestInterception problems (origin/timeout-fixes)
fe64f9b core: avoid further execution when process has timed out
27a3db4 core: align promise.resolve usage
cf00864 reset reused pages after errors
8359510 core: fully disable puppeteer navigation timeouts
Published by pocketjoso about 6 years ago
Had to downgrade puppeteer, and re-wrote puppeteer browser handling. Penthouse now re-uses the page puppeteer launches with, and is capable of re-using pages between penthouse calls (only used in unstableKeepAlive mode, for now).
Raised an issue for this here:
GoogleChrome/puppeteer#3118
Published by pocketjoso about 6 years ago
Primarily dependency upgrades. Patched twice as I tagged the wrong branch and this was the easiest solution. 🙃
Published by pocketjoso about 6 years ago
#267 -package upgrades, including [email protected]. Also bumped minimum Node requirement to 6.14
, and fix a babel warning (regarding specifying node format as a float, instead of string).