Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LARAVEL 9 Code Debug Screen Not Showing After Enable Page speed #168

Open
manish0197 opened this issue Sep 2, 2022 · 2 comments
Open

LARAVEL 9 Code Debug Screen Not Showing After Enable Page speed #168

manish0197 opened this issue Sep 2, 2022 · 2 comments

Comments

@manish0197
Copy link

I AM Using This PHP And Larvel Version

"php": "^7.3|^8.0",

    "laravel/framework": "^9.19",

    "renatomarinho/laravel-page-speed": "^2.1"

I Already Enable APP_DEBUG=true

Laravel's code debugger screen blank show whenever there is a bug in the code

@fh32000
Copy link

fh32000 commented Oct 31, 2022

@massimodellarovere
Copy link

massimodellarovere commented Jan 31, 2024

Code Debug Screen use this code javascript that is removed for comment. It's a bad technique to execute JavaScript and comment it out if the browser doesn't have JavaScript enabled. It's a technique that I would actually avoid.

More problems than solutions. One of the problems is precisely the minification regular expressions that, 99% of the time, remove the code, thinking it's a comment.

<script>
    <!--
    function e(){return(e=Object.assign|| ..........
    return c.createElement( ............
     return c.createElement( ............
     return c.createElement( ............
     -->
</script>

I use this code before minify code con other packages

$content = applyMinifyJsDummy($content);
$content = applyMinifyJsValue($content);

function applyMinifyJsDummy($value)
 {
       return preg_replace('/<script>\s*<!--(.*?)-->\s*<\/script>/s','<script>$1</script>',$value);
 }
function applyMinifyJsValue($value)
 {
      return JSMin::minify($value);
 }

Not Problem with Ignition

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants