Decrease the load time for Mobile Version Rails Site

Posted by Ramoji on Stack Overflow See other posts from Stack Overflow or by Ramoji
Published on 2013-07-03T11:02:40Z Indexed on 2013/07/03 11:05 UTC
Read the original article Hit count: 263

I have been working on the mobile version of my rails application.I am using the approach of using the same controller and rendering a mobile view when the request is from a mobile device.

I am using jquery mobile in mobile views. For mobile views I did not use any layout for the views because it is the same as loading the required files in each view.

In this approach, Every request essentially loads all of the required js,css files which i feel is making the mobile site to load slowly.

How could i make my views to load the js and css files just once?

Thanks,

Ramoji.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about jquery-mobile