[Views] Optimizations/Compiled blade if statement comment removal #56564
Unanswered
alexandre433
asked this question in
Ideas
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
So after watching https://www.youtube.com/watch?v=ciNXbR5wvhU - which talks about an article called "Why your website should be under 14kB in size" - I saw that on the rendered html from views, at least the only ones I've seen, the if statements on the .blades add a comment into the html, making it a bit larger than it should, which can hinder, in larger cases, the website's loading.
I did a little test on my website to check if it was that big of a difference in size, having little if statements on the blades, and it went from 32.8KB (or 36KB size in disk) >> 31.7 KB (or 32 KB size in disk).
What was removed?
I love optimizing and making things faster this might be a tiny one that might not even gain much traction, but it's a start!
Beta Was this translation helpful? Give feedback.
All reactions