## Detailed description Currently the `RemoveComments`, and thus also `CollapseWhitespace` middlewares don't correctly strip out `// Comment`s from JavaScript `<script>` tags. ## Context The described issue leads to broken compressed pages due to JavaScript code being `// Comment`ed out. This also leads to confusion with developers trying to implement this package, some might abandon the package, thinking it is broken while it is not. ## Work Around Replace all your JavaScript `// Comment`s with `<!-- Comment -->`s ## Your environment | Software | Version | | ------------- | ----------- | | PHP | v8.1.27 | | Laravel | v10.43.0 | | Laravel-Page-Speed | dev-master https://github.com/renatomarinho/laravel-page-speed/commit/b16c0185ae6816b47c8534b4ecfbce73e6c11cf8 |