-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Preload audit improvements #4425
Comments
same-origin? as in the origin of url? what about cdn urls? could we use the third party badges? Or just take all origins that are in the document?
what definition do we use? Just keep requests 2 levels deep but use all requests? (xhr, images, ...) |
I vote we include all subdomains but exclude 3rd party. i.e. for cnn.com, we could flag us2.cdn.cnn.com URLs but not cnn-cdn.amazonaws.com. It's possible they know the URL ahead of time for 3rd party but we'll flag those domains in the preconnect audit anyhow. |
ya, sounds good. lets put this lil domain comparison fn in our url-shim. |
I pretty much agree. Let's roll with this. I'm moving this to P1 (can P2) so that the preload audit is as sharp as we can get it when we highlight it at events and folks try it out. |
@paulirish @patrickhulce are we still looking into this one? |
@paulirish @patrickhulce @addyosmani @brendankenny |
Whoops, sorry Ward!
Seems a bit open-ended and researchy to me, but valuable for lantern too. I'm not sure if it's the highest priority thing to be doing though. Maybe as a start we see if the simplest rule "XHRs completed before FMP" actually finds anything on real sites and if it looks promising we continue? Not sure if @addyosmani or @paulirish has other plans for you though :) |
SG. let's. |
A little suggestion: on our app we have a lazy iframe, which loads some time after |
Thanks for adding @kirill-chirkov-at-clouty! iframes should be excluded from the preload audit, what version of Lighthouse are you using? If you're using the latest, a separate bug report with repro steps would be awesome :) |
@patrickhulce sure thing, I was using 3.2.1 version, I believe this is not latest for the time being (4.0.0-alpha.2-3.2.1). |
(3.2.1 and 4.0.0-alpha.2-3.2.1 are actually the same version, due to my mistake. :) |
The remaining item from this is
but in #11960 we determined we may be too inclusive already. i've added a brief mention of this idea to 11960 but i'll close this one now. |
A few followups from #3450
We could do these in separate PRs.
The text was updated successfully, but these errors were encountered: