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

R. V.d.M
Courses Plus Student 3,067 PointsPageSpeed, Asynchronous Module Definition (AMD) & Require.js
Hello,
I've spent a lot of time in Google's PageSpeed recently and have found all suggestions like compression and minifying rather easy to apply to my project (a Backbone.js web app with a Rails JSON API) following lessons learned on Treehouse. The only major optimization tip I'm struggling with is deferring the parsing of JavaScript. Google only offers concepts, no real examples and I have a feeling libraries like Require.JS could help out with this too.
With JS driven web apps becoming the new standard and page performance the hottest web development topic for 2013 I'd love to see Treehouse's suggested solution to solving the deferred parsing problem.
Thanks!
https://developers.google.com/speed/docs/best-practices/mobile#DeferParsingJS
2 Answers

Andrew Chalkley
Treehouse Guest TeacherHave you got a blog? Maybe you could write an overview of using PageSpeed. It may be helpful to other members.
I think there's a few interesting things that are on a JavaScript developers radar. For example TurboLinks in Rails 4. I think this could have issues dealing with the state of your JS App when asynchronously loading pages in may get tricky. I suspect it's a case-by-case tweak what breaks.
An increase in performance often has a development time increase too :)

R. V.d.M
Courses Plus Student 3,067 PointsI like that thought a lot!
DailyJS has a very in depth Backbone tutorial starting with RequireJS from the beginning.
I've got a 93/100 PageSpeed score right now and am on a quest to get that to 100. I'll be perfecting my javascript skill and will go through the entire DailyJS tutorial in the next few weeks, once done I'll hopefully find the time to write about my journey to a 100/100 PageSpeed score and share it with the Treehouse community. Maybe this could one day even be turned into a class!
If anyone has any other resources about PageSpeed + Require.js + Backbone.js + Rails please do share!