# |
Dec 4th 2017, 20:07 |
inoas |
google tag manager, analytics, facebook, bing - all got broken SEM ressources |
# |
Dec 4th 2017, 20:07 |
inoas |
and then all the big players cannot fix their own shit |
# |
Dec 4th 2017, 20:07 |
inoas |
and on http2 it matters less anyway |
# |
Dec 4th 2017, 20:07 |
inoas |
and then if you add gzip it is 0.5kb |
# |
Dec 4th 2017, 20:07 |
inoas |
that is 150kb big and you can save 3kb |
# |
Dec 4th 2017, 20:07 |
inoas |
for instance minification... on a html document... |
# |
Dec 4th 2017, 20:06 |
inoas |
don't get me wrong, I don't believe everything they say is important |
# |
Dec 4th 2017, 20:06 |
admad |
heh, so we are back to where we started, "fuck pagespeed" :P |
# |
Dec 4th 2017, 20:06 |
inoas |
though it is a customized bs3 with just the grid and responsive utilites and from styles for bootstrapui cakephp3 plugin |
# |
Dec 4th 2017, 20:06 |
inoas |
because f**k pagespeed :E |
# |
Dec 4th 2017, 20:06 |
inoas |
and for http2 I inline load them LOL |
# |
Dec 4th 2017, 20:05 |
inoas |
http2 is one binary channel |
# |
Dec 4th 2017, 20:05 |
inoas |
no point |
# |
Dec 4th 2017, 20:04 |
admad |
why aren't you joining css to reduce requests? for e.g. bootstrap.min.css and base.css |
# |
Dec 4th 2017, 20:04 |
inoas |
caniuse.com/http2 |
# |
Dec 4th 2017, 20:04 |
inoas |
and if you don't believe 80%+ |
# |
Dec 4th 2017, 20:01 |
inoas |
in chromes inspector (the only thing chrome is good for) you can see the http2 preload and prefetch headers |
# |
Dec 4th 2017, 20:00 |
inoas |
afair |
# |
Dec 4th 2017, 19:59 |
inoas |
and I think it is woff2 only because http2 push is only supported by woff2 clients anyway |
# |
Dec 4th 2017, 19:59 |
inoas |
for any subsequent http2 request there is none (if the font is in the cache) |
# |
Dec 4th 2017, 19:59 |
inoas |
that means for the first request (no cache) there is a small flash of loading font |
# |
Dec 4th 2017, 19:58 |
inoas |
and the fonts are set to prefetch |
# |
Dec 4th 2017, 19:58 |
inoas |
in the example above the above the fold css does not complain with pagespeed |
# |
Dec 4th 2017, 19:58 |
inoas |
the browser already knows about your ressources |
# |
Dec 4th 2017, 19:58 |
inoas |
and then use regular html->css() |
# |
Dec 4th 2017, 19:58 |
inoas |
but as a PoC you can just try the header commands |
# |
Dec 4th 2017, 19:57 |
inoas |
<?php if (config('debug') === true) : ?> probably doesnt exist |
# |
Dec 4th 2017, 19:57 |
inoas |
(.*) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L] <= thatfor |
# |
Dec 4th 2017, 19:57 |
inoas |
jfyi |
# |
Dec 4th 2017, 19:57 |
inoas |
http2 only runs on https |
# |
Dec 4th 2017, 19:57 |
admad |
thanks, i'll report back after trying out |
# |
Dec 4th 2017, 19:56 |
inoas |
both 100% page speed |
# |
Dec 4th 2017, 19:56 |
inoas |
it is mixed HTTP2/HTTP1 optimization |
# |
Dec 4th 2017, 19:56 |
inoas |
https://gist.github.com/inoas/2ac1467f83c83af3ea9a41afda905a08 |
# |
Dec 4th 2017, 19:56 |
inoas |
don't complain about the stuff that should indeed be in middleware or controller context @ response/header() ;-) |
# |
Dec 4th 2017, 19:52 |
admad |
inoas: gimme the 35 lines :slightly_smiling_face: |
# |
Dec 4th 2017, 19:49 |
inoas |
next stop --- fighting apache cors settings to fetch fonts from static-domain being on domin |
# |
Dec 4th 2017, 19:47 |
inoas |
I mean... I need 35lines of js to load jquery so that other scripts can be loaded once jquery is loaded so that I can load jquery deferred... sure. |
# |
Dec 4th 2017, 19:47 |
inoas |
makes most of inlining, sprite maps, ugly js hacks unnecessary |
# |
Dec 4th 2017, 19:46 |
inoas |
http2 solved a lot of those ugly problems |
# |
Dec 4th 2017, 19:46 |
inoas |
inline css/js or Filament loadCSS |