-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfiler] Profiler improvements / extract Font from stylesheet #51888
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
Conversation
Hey! Thanks for your PR. You are targeting branch "6.4" but it seems your PR description refers to branch "6.4 for features". Cheers! Carsonbot |
66c38df
to
4663658
Compare
I'm having troubles with tests... i'll fix / ask help just after the implementation feedback . |
The Twig changes made those last 24h may explain (at least partially) my troubles with the tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this Simon. I left some comments.
src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Resources/fonts/JetBrainsMono.woff2
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php
Outdated
Show resolved
Hide resolved
Test errors are now unrelated |
Is there anything else i can do ? Should i rebase the commits ? |
@@ -1,5 +1,5 @@ | |||
<div id="header"> | |||
<h1>{{ source('@WebProfiler/Icon/symfony.svg') }} Symfony Profiler</h1> | |||
<h1><a href="{{ path('_profiler_home') }}">{{ source('@WebProfiler/Icon/symfony.svg') }} Symfony Profiler</a></h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
ba8f962
to
a78ec8d
Compare
Thank you @smnandre. |
This PR remove 30% of profiler responses size, removing unused font/data64
AndMore 1 - fixed a couple of CSS bugs
AndMore 2 - made the logo clickable, allowing anyone to quickly returning to the profiler homepage
In the HTML source code of every profiler page (excluding the toolbar) .... was inejected around 100KB of base64 encoded font.
With the raise of ui / system fonts, the adoption of HTTP2, and all the other techniques to handle assets in a simplier way... i think we have to improve this (minor) situation.
This PR
extract the woff
file in its own file, handled by the Profiler controller, and leverage the "local" stores.Result: 30%of immediate reduction
Now it's