Tuesday, 3 September 2013

How to: Build an Ajax Applications using Rails

How to: Build an Ajax Applications using Rails

I'm in the process of reworking a front end of a site built in Rails. I
want it to be an adaptive/responsive, mobile first site.
The developers are using wiselinks to delivery AJAX on the site. Our asset
pipeline is currently over 600kb and thats no good for mobile.
Is there a way we can conditionally load in assets based on device
features? Like modenizr but that will play nice with rails and wiselinks
(or turbolinks). Also can we spilt the assets into more manageable sizes
rather than 1 giant js file?
Thanks for any leads.

No comments:

Post a Comment