Speed up page load in production when using Laravel Mix #53291
Unanswered
MircoBabin
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Mix is a great tool, but it slows down loading the page. This is because upon each request the
mix-manifest.json
file isjson_decode()
-ed in themix()
function.framework/src/Illuminate/Foundation/Mix.php
Line 54 in 4b5ce19
This is not needed and total overkill in production, because in production
mix-manifest.json
will never change. Ok, it will change when a new version is deployed, but between deployments it will never change.Some years ago I programmed my own caching solution for this problem and published it today. See my comment: laravel-mix/laravel-mix#3367 (comment)
Beta Was this translation helpful? Give feedback.
All reactions