top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to increase the css and js file loading speed in rails 3

+2 votes
364 views

Right now i am working on rails 3 . Is there any possible way to increase the css and js file loading speed (with out asset). please help me

posted Sep 20, 2013 by Bob Wise

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

Is there a accurate way of truly testing what upload and download speeds I'm getting?

+1 vote

What’s the ideal speed for a site to load a web page. I am working for a website and its showing Very Slow (3.519 Seconds) 84% of sites are faster then this?

+1 vote

What is the speed of LTE, TD-LTE and Advanced LTE under different conditions.

+1 vote

I'm trying to use D3, a javascript data visualization library in my rails app. The problem is that I can't figure out where to put the d3.js source and my .json data so that rails will serve it.

My problem is in the way d3 issues a GET request when it looks for my json and d3.js files.

Things I tried:- setting up a static pages folder that is served with high_voltage gem. This didn't work for me as I couldn't get around my application layout so it wrapped my js and json in html. I think this is why this didn't work.- putting the files to be served in the public folder. This didn't work because it couldn't find the routes for the public folder. I did turn on config.serve_static_assets in the production enviroment config file.
I feel like this question should have a simple answer as everything works perfectly if I put my html, json and d3.js files into a folder and start a simple python http server in that folder. I think my problem is in my understanding of the way rails is trying to serve things.

...