samedi 11 avril 2015

Ruby on Rails Extremely Slow to Load Pages and Once Load have to Refresh for Buttons to Work

I am creating a cinema system in Ruby on Rails and I BIG problem I am having is that the pages take ages to load, and when they do load the buttons don't work so I have to refresh the page.


I don't know why it does it, but I have a huge CSS, and because its a cinema site I have film images and film trailers; in total the directory is 359MB, with the videos folder (in the public folder) being 266MB.


When I first run the server using rails s I get this output:


enter image description here enter image description here enter image description here enter image description here I am precompiling the videos and images in config/intitializers/assets.rb:



Rails.application.config.assets.version = '1.0'
Rails.application.config.assets.precompile += ['public/videos']
Rails.application.config.assets.precompile += ['app/assets/images']


I am using Firefox (but its the same on all browsers) and Windows 7.


Can someone please advise me on how to improve this issue.


Aucun commentaire:

Enregistrer un commentaire