Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Layout Techniques Float Layout Mobile First Layout

Chenghua Yang
Chenghua Yang
2,591 Points

Benefits of Mobile First Layout

In this video, is the point of using mobile-first layout because of the faster and stable internet speed on desktop than mobile devices? So we can load only mobile-specific stylesheet for mobile devices, and both mobile and desktop ones for computer?

1 Answer

Mobile first is best because mobile devices have band width issues and the CSS skips execution of media query content. If it is desktop first, then the mobile devices have to analyze code it will not execute, slowing performance. Modern desktops have much less issue with extra code due to connection speeds and processing power.