pouyabh's avatar

Can U tell me a package to increase speed to load response (blade)

I wanna STH to Compress my files And reduce their volume STH And increase performance

0 likes
10 replies
pouyabh's avatar

As I said, I want a package to increase the performance of my site :))

Tray2's avatar

@pouyabh Have you installed the Laravel debugbar (or a similar tool) to find out how many queries you run, how long they take, how many models you use and how much memory they allocate?

If you haven't done that, do it before you dive in to other ways around bad performance.

Jonathan Reinink has a great course on speeding up your Laravel application and its database parts.

https://eloquent-course.reinink.ca/

1 like
pouyabh's avatar

[InvalidArgumentException] Package laravel/octane at version has a PHP requirement incompatible with your PHP version (7.4.26)

Do U know What versions should I install?

Sinnbeck's avatar

But the best optimization is probably you own code. Queries etc

1 like
pouyabh's avatar

I found A package" renatomarinho/laravel-page-speed " Can U check It and tell me your Opinion TNX @tray2 @sinnbeck

Sinnbeck's avatar

@pouyabh this just minimizes the html. I bet you can't tell the difference in speed, but feel free to test it out

1 like
martinbean's avatar
Level 80

LOL.

“How do I make my site faster?” “Install a package and add more code to it.”

You can’t install a package to make a site magically faster. Sites are slow because of the code it runs. If it’s slow, then your code is inefficient. So look at why your code is actually slow and rectify that instead of thinking installing a package will magically solve your problems.

There’s no point say, compressing responses if the problem is say, database query-related. Compressing responses is going to do nothing for you in that situation.

Please or to participate in this conversation.