renatomarinho / laravel-page-speed

Package to optimize your site automatically which results in a 35%+ optimization
MIT License
2.4k stars 275 forks source link

Javascript error Unexpected end of input #158

Open abhijit503 opened 2 years ago

abhijit503 commented 2 years ago

sir i have a problem to use laravel-page-speed package... when i use this package in my laravel app it through a error: Uncaught SyntaxError: Unexpected end of input

my environtment is php version 7.4.

what can i do? Please help

tavvvv commented 2 years ago

Remove single line comments from your JavaScript.

Use /*This is a comment*/ instead of //This is a comment