Critical CSS + Fail 🧨

  Рет қаралды 14,218

DevTips

DevTips

Күн бұрын

Пікірлер: 86
@sekenikola
@sekenikola 6 жыл бұрын
Great episode. One thing. You didn't have to install audit extension. It's integrated into Chrome. Just go to inspect mode and click on two arrows in the menu bar.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
HAHA what! Mind blown! You're right.
@malith_videco
@malith_videco 6 жыл бұрын
Yeah i was thinking the same.
@davidluhr
@davidluhr 6 жыл бұрын
@@OfficialDevTips Yep! It's awesome. More specifically, it's under the "Audits" tab in Dev Tools.
@GifCoDigital
@GifCoDigital 6 жыл бұрын
Yea and not to mention you can test local files when you use the built in lighthouse!! lol
@thommoraisdarosa
@thommoraisdarosa 6 жыл бұрын
@@OfficialDevTips And since you both have puppeteer installed already, you can use lighthouse CLI
@v.bourdeix
@v.bourdeix 6 жыл бұрын
I love watching you guys struggle to achieve every small things >< ! It feels exactly like real life (in particular with IT things), when all should be so simple in theory but depending on various factors, you have a hard time getting started :-) Thank you for keeping this stuff and showing the world you too are facing failures ^^.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Yay thanks for the encouragement!
@GifCoDigital
@GifCoDigital 6 жыл бұрын
This was a perfect mix of editing out / speeding up pointless parts but keeping the back and forth of trying to figure things out! Great job! :)
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Thanks!!
@jagdishpatil02
@jagdishpatil02 6 жыл бұрын
I am writing CSS for almost 1 year and never introduced to this topic. Thank you for bringing it to the show.
@Zealotux
@Zealotux 6 жыл бұрын
If don't think you actually deferred the loading of your full CSS file though which might explain the worst performance, I did some testing on my side and I actually got a huge improvement (from 3600ms to 1750ms for FMP) by loading my full CSS this way: , there are much better ways of deferring CSS (this one doesn't have a noscript fallback) but it's enough for testing purpose. Give it a try and tell me what you think!
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Thanks for the idea! Something like that seems nicer. Yeah you could also set it as , would have the same effect I think. To keep it simple and understandable we just put the links at the end to have it run on "page load".
@BossShivaji
@BossShivaji 6 жыл бұрын
This video has fantastic quality and great mental strength. Also good timing with ze offer, been looking for a good domain for my coding site.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Stock up on those .techs!
@JonPreece
@JonPreece 6 жыл бұрын
I've complained about the last few videos. I'd like to say that this video was considerably better. Interesting content, better preparation, and I enjoyed seeing you guys encounter the same kind of issues I encounter of a regular basis!
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Thanks for the encouraging words!
@JacobMGEvans
@JacobMGEvans 6 жыл бұрын
I personally appreciated the effort to prepare. I also like that even though it "Failed" it was successfully finished and would be a good place to start from again for either people learning stuff to continue from or for you all to continue it if you ever want too. Great work!
@this.channel
@this.channel 6 жыл бұрын
8:10 Thank you for putting that in. It means so much to me that I hear this from my peers, so I know I'm not a total failure.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
We are all total failures!
@TomHacks
@TomHacks 6 жыл бұрын
Suggestion - 23:13 - isn't that what rel="preload" is for? If you want to minify the css even further the npm package "minimalcss" is a better alternative (opinionated). It'll extract useless unused fonts (just like in you case) as well + it'll even recognise style "after" javascript things are loaded. It also skips the manual css loading things, though. Killer...
@sarahadi45
@sarahadi45 6 жыл бұрын
Love your videos and the struggles you go through. Keep it up guys !
@rw251
@rw251 6 жыл бұрын
I've found that using lighthouse in incognito mode is more consistent as it doesn't load any extensions.
@Soundtech98
@Soundtech98 6 жыл бұрын
Interesting to watch. I wonder if the Throttling Settings had an impact on the results. The initial benchmark (4:38) did not appear to have been throttled, all subsequent readings were taken after you had played with the 3G speeds - maybe it's somehow related? When is the Online Business series continuing? It's so informative - always looking forward to it at the end of the week, watching in anticipation.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
The online business will continue when it continues! It's mainly David's project and he has another job so it is very much based on his workload. We're also looking forward to more of it. Thanks for the support!
@mtheoryx83
@mtheoryx83 6 жыл бұрын
You can run 'npx ws' for a super quick no-install webserver! `npx` can run node modules without requiring an install and a package.json. And ws just spins up a server in that directory. It's presumably faster than pushing up something to `now` for quick experiments like your lighthouse test from a local file.
@maximemoreau711
@maximemoreau711 6 жыл бұрын
Oh thanks! I didn't know about ws :)
@ashbash986
@ashbash986 6 жыл бұрын
How's the agency app going? are they still making videos about it?
@justfly1984
@justfly1984 6 жыл бұрын
Guys, you don't need a plugin, you just need to open Audit tab in chrome's inspector
@mikecks
@mikecks 6 жыл бұрын
The difference between the results Daniel was seeing compared to MPJ may be the throttling option in lighthouse. I find it massively changes the results I get, also you don't need the extension anymore - lighthouse is baked into the chrome audits tab.
@nickwoodward819
@nickwoodward819 6 жыл бұрын
i like the unpreparedness and anger. keep it up.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Mental note: schedule very early recordings to get Mattias into grumpy-and-angry mode.
@mllr_nyc
@mllr_nyc 6 жыл бұрын
31:02 I'm dying 😂 ... great show
@simoneicardi3967
@simoneicardi3967 6 жыл бұрын
I Still love this format just because it's so real, I learn something and it makes feel less "alone" in some ways :-)
@rajashekhar433
@rajashekhar433 6 жыл бұрын
What about performance tab...
@zeocamo
@zeocamo 6 жыл бұрын
thanks, the massing up is so fun
@foobar8478
@foobar8478 6 жыл бұрын
Never tried this. Even though you guys didn't see the results you wanted I'm still going to give it a shot and see if I notice any improvement. Thanks.
@HashimWarren
@HashimWarren 6 жыл бұрын
i started pairing because of these videos. I no longer feel self conscious about running into walls in front of another person.
@Archil1997
@Archil1997 6 жыл бұрын
lighthouse is included in the recent versions of chrome. you don't need to install the extention, it's in the chrome devtools.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Chrome Dev Tools are so good. Having such a great thing and people like us don't even know about it. There should be some tutorials on Chrome Dev Tools!
@kamaboko1
@kamaboko1 6 жыл бұрын
"Above the fold" is often heard in Weight Watchers, but the meaning is very different.
@bookwormhead
@bookwormhead 6 жыл бұрын
Can this be apply in CMS platform like WordPress without breaking the site?
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Yes!
@qianj.j.5919
@qianj.j.5919 Жыл бұрын
love it. thanks for your help
@jacksonlenhartmusic
@jacksonlenhartmusic 6 жыл бұрын
Watching developers fail at CSS is my new favorite form of entertainment :) Edit: Now further into the video, I realize this is more failing at web profiling rather than css. I will leave the above though because this comment is a fail in and of itself!
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Haha thanks for updating and sharing your progress
@mattcroat
@mattcroat 6 жыл бұрын
I love you guys! Keep it real.
@nathantorquato9777
@nathantorquato9777 6 жыл бұрын
`to the people who are like: "you're not prepared".. screw you.. that's what real development is like` - MPJ, the legend LOL 😂😂😂
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
He's a quote generator. We should build some JavaScript around his mouth to capture the quotes.
@shauntricks
@shauntricks 6 жыл бұрын
Where do you get all those cool stickers that Everybody has on their laptops
@rajashekhar433
@rajashekhar433 6 жыл бұрын
For fast rendering can we use puppetter prerender npm plugin which is from google
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
I could be wrong, but I think it simply renders down the JS app. It doesn't move around the CSS to get the critical loaded first when the browser tries to parse and draw the page.
@rajashekhar433
@rajashekhar433 6 жыл бұрын
DevTips please provide videos on nodejs.im confused what need to learn for beginners
@justfly1984
@justfly1984 6 жыл бұрын
One more thing - CSS above the fold is useful only if it is less than 12k, cos there is a limit on initial packet size. Optimize your CSS selectors guys)
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Yeah of course. We just took a random site on the internet that we don’t control.
@justfly1984
@justfly1984 6 жыл бұрын
Guys, why don't you go to South East Asia for a month? you can work from a villa on the coast of the ocean for a difference, with enough sunlight!
@oktavic777
@oktavic777 6 жыл бұрын
Inlining external resources in my opinion is a bad idea, because this resources can't be cached.
@chrsbll
@chrsbll 6 жыл бұрын
In some situations it's a good idea, because you can also cache your html
@maximemoreau711
@maximemoreau711 6 жыл бұрын
For critical css it's a really good idea, no extra request. But be aware to have a small amount of css inlined, don't fall into "oh yeah, I'll inline everything!" ;)
@philmirez
@philmirez 6 жыл бұрын
MPJ’s meme game is on point.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
The creator of FFF is also an MMM: MPJ MEME MACHINE
@BlueClarification
@BlueClarification 6 жыл бұрын
I like you guys the way you are
@bibibobs
@bibibobs 6 жыл бұрын
9:53 I would've wrapped a div with the id critical around the image and visible content and pointed to the children from the #critical div and pasted those styles in the head
@bibibobs
@bibibobs 6 жыл бұрын
I'd like to add that you should aim for 16/9 and 18/9 (9/16, 9/18) devices
@justfly1984
@justfly1984 6 жыл бұрын
Don't use extension, use Audit tab in chrome!
@MrRicharddaniel
@MrRicharddaniel 6 жыл бұрын
Wait so .tech domains is 95% off and then additional 10% off ? is my maths wrong here?
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
I don't know the details, but I _think_ they will subtract 10% off what's left after having subtracted from the first offer.
@JasonStoudt
@JasonStoudt 6 жыл бұрын
The pushback is real
@zeocamo
@zeocamo 6 жыл бұрын
and yes you want it in the html
@marcinkrysinski1566
@marcinkrysinski1566 6 жыл бұрын
I like some fails in yours videos
@isatriya2
@isatriya2 3 жыл бұрын
God damned! Both of u are not well prepared as hell!! There is a "css" feature to read the css file 😅
@Rob-ib8xw
@Rob-ib8xw 3 жыл бұрын
thank you!
@jorge0092
@jorge0092 6 жыл бұрын
awesome content... real code and not overly scripted
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Thank you!
@natqe4049
@natqe4049 6 жыл бұрын
thanks boys
@CoderPranav
@CoderPranav 6 жыл бұрын
8:03 r/WatchPeopleDieInside
@AntonKristensen
@AntonKristensen 6 жыл бұрын
Like to see you guys fail! Just shows the reality :D Keep it up! :)
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
THANKS!
@voxel8606
@voxel8606 6 жыл бұрын
I Love devTips this chanel changed mm live but can you make shorter Videos ? The topics are nice but I don‘t like 30min Videos cut it nice and Short 😉
@LNTutorialsNL
@LNTutorialsNL 6 жыл бұрын
At around 2:07 your home address is visible
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Not a super big deal. You know, we live in Sweden where a lot of information like that is public already. Addresses, tax filings (how much you make) etc.
@calebprenger3928
@calebprenger3928 6 жыл бұрын
Here is a great tip, make a website as fast as you can without doing a bunch of extra crap. That is the real world
@bhupinderbhattarai244
@bhupinderbhattarai244 6 жыл бұрын
1st view
Teaching CSS to a Coder 🙀 (How to Lazy Load Images)
25:04
Best "Web" Development Content of 2018
28:15
DevTips
Рет қаралды 13 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Font Loading Performance 📉 6 Experiments with FOUT & FOIT
38:40
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 61 М.
Critical CSS loading for WordPress: Commit Log - Supercharged
6:20
Chrome for Developers
Рет қаралды 10 М.
Recursion ➰ for Paginated Web Scraping
32:24
DevTips
Рет қаралды 30 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 97 М.
Let’s Animate with CSS (and Failing Fast!)
33:28
DevTips
Рет қаралды 20 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
How to Work with Legacy Code ☠️
20:22
DevTips
Рет қаралды 17 М.
Trying Docker for the First Time 📖 Many Learnings!
50:42
UnCSS your CSS!  Removing Unused CSS with PostCSS & Parcel
13:08
DesignCourse
Рет қаралды 60 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН