I am currently utilizing the laravel-mix-criticalcss npm package to extract the critical CSS of my website.
This package leverages Penthouse under the hood, and you can configure Penthouse settings in your webpack.mix.js
within the critical options.
The Penthouse documentation states:
Typically, all elements that need styling in the critical CSS must be present (visible) in the HTML of your page with Javascript disabled.
However, achieving this requirement on our site may not be feasible. I understand that some Puppeteer settings can be provided in the penthouse configuration. Is there a way to enable JavaScript for this process?