Decrease the load time for Mobile Version Rails Site
- by Ramoji
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.