similar to: How to increase css and js file loading speed in rails 3 application

Displaying 20 results from an estimated 20000 matches similar to: "How to increase css and js file loading speed in rails 3 application"

2012 Nov 21
0
What to use //= require_tree or js,css incude tag in application.erb ?
Hi , We are using reqiure_tree in our application.js and application.css. As per i know require_tree include all js and css in application.js and application.css . We include application file of both .js and .css in our application.erb. Q . We include both .js and .css application file in application.erb . Is including in application.erb, did all .js and .css file are included in
2006 Jul 27
3
A number (id?) is added after css/js tags like style.css?1154009736
Dears, My Ror setup works.. but I can''t guess why <%= stylesheet_link_tag ''style'' , :media=> ''screen''%> is rended as <link href="/stylesheets/style.css?1154009736" media="screen" rel="Stylesheet" type="text/css" /> What is that number.. any usage ?? Or I misconfigured something ? Thanks
2010 Nov 26
1
rails 3.0.3 in production css js do not load HELP
in rails 3.0.3, when up app in production mode... the css and js cannot be loades... anyone know how to handler it to make it works? in rails 3.0.3 qdo rodo a app em mdo producao... os css e js se tornam inacessiveis, alguem sabe como consigo ajustar isso? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,
2011 May 25
0
(solution) .js and .css error when using production environment
When changing to a production deployment with a single rails instance, NOT proxied, errors showed up on the console, and of course .js and .css files were not served as a result: ActionController::RoutingError (No route matches "/javascripts/application.js"): ActionController::RoutingError (No route matches "/favicon.ico"): Solution: in config/environments/production.rb:
2006 Jun 01
0
JS / CSS ressource files and query strings for caching
Rails appends query strings to ressource files for intelligent browser caching (only updating browser cache when files get channged) But this article ( http://www.thinkvitamin.com/features/webapps/serving-javascript-fast ) says the following: At this point, you might ask why we don''t just add a query string to the end of the resource - /css/main.css?v=4. According the letter of the
2006 Jan 03
1
RequireResourceHelper for JS and CSS
The following was posted on my blog at http://blog.inquirylabs.com. A friend of mine recently expressed interest in this code snippet, so I thought I''d send it out to anyone else who''s interested. This module makes it a lot easier to ''require'' javascript and cascading stylesheet dependencies inside your views or controllers. By
2007 Jun 20
4
Remove session string from css and js file?
How do you remove the session string from the css and js file? I have already set the ApplicationController session :disabled => true Any suggestions or a site that already has this solution? Thank you, Nickmenow -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2012 Feb 26
0
Served asset /application.css - 304 Not Modified
Hi I am thinking to hide warning that is ”Served asset /application.css - 304 Not Modified”. How can I fix something if I change the settings? I''ve run that is less than server: rails new myapp cd myapp rake db:migrate rails s client: http://localhost:3000/books warning: Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2012-02-26 14:48:35 +0900 Served asset /books.css
2012 Aug 29
7
custom js in rails project
Hello, I have a rails project with one controller and one action, as simple as posible. And I''m trying to put some custom css and js to my own index.html.erb (not public/index.html.erb), I inluded this on the layout file: layout file: <!DOCTYPE html> <html> <head> <title>Volei</title> <%= stylesheet_link_tag "application", :media =>
2013 Mar 10
2
css url paths when moving it to a different folder
Hey. Its simple quation, but have litle problem with this. Its my path for css - assets/content/stylsheets/my.css Its path picture for background url - assets/images/picture.gif I do the following in my.css background: transparent url(../../images/picture.gif). but the path is not correct, the image is not found. I tried with one ../ and easy images/picture.gif. Not work. When i add picture in
2013 May 23
1
rake assets:precompile issue with JS and stylesheets files with similar name
Hi, I''ve got following two files with same names under javascripts and stylesheets directories as: - app/assets/javascripts/test_vendor.js - app/assets/stylesheets/test_vendor.scss Essentially a JS and an stylesheet files with same name. -------------------------------------------------------------- I want these files to be precompiled and served from public directory. Thus I
2010 Aug 11
0
[PATCH] prototype rails.js fix for forms with multiple submit buttons
Hello, Please see my ticket at https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5356 for a fix for supporting multiple submit buttons in forms using the prototype version of rails.js. The ticket goes into more detail. Please let me know of any changes, comments, etc. My javascript-fu is not as good as my ruby-fu. Thanks -- You received this message because you are
2012 Oct 31
5
css background not showing
Hi all, for some reason adding the following is doing nothing... .post.hover { background: FAFAFA; I''ve got this in my posts.js coffee file $ -> $(''.post'').hover (event) -> $(this).toggleClass("hover") and my index is <% @posts.each do |post| %> <div class="post"> <strong><%= post.title %></strong>
2013 Mar 06
0
CSS not compiling in server
Hello everyone, I am using rails 3.2.8 In local my site working well with css file. But In staging my css file not getting compiling but my js and images are compiling but not css. and I am just importing css file in application.css In my Capfile, i having following code, load ''deploy'' load ''deploy/assets'' I don''t know why. Any idea? Please
2006 Jun 15
8
Loading CSS for AJAX apps.
I am working on an update to my content management system and I am using a lot of AJAX to load in the different "Modules" I want each module to be self contained, including all its specific js and CSS. Does any one know of a good solution for loading in new CSS to go with the code loaded in via the AJAX call? Thanks.
2013 Feb 27
4
My SCSS compiled CSS lacks "/assets" in the generated urls
Running "rake assets:clobber assets:precompile" will generate files like "application-xxx.css" with incorrect urls after upgrading to Rails 4. For example url(/fields/xxx.png) when it should be url(/assets/fields/xxx.png). For some unknown reason it worked once in development mode, but after running rake assets:clobber I can''t get it to work again... Any ideas
2013 Feb 25
3
How to use same css in pdf for wkhtmltopdf
hi I am not getting the css in my pdf i wanna use same css for my pdf also rather going for new css for pdf. how can I use same css which I use in my views. I am using wkhtmltopdf for pdf generation and one more thing is how get page page brake using wkhtmltopdf. Cheers, Kp -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2012 Dec 16
2
css background image not working
Hello, I''m trying to set the background of a page to an image I have in the assets/images folder in my rails app. However, for the life of me I cannot get it to work. When I open up and inspect the element I keep seeing in the resources that the file cannot be found with a red "!" next to the image. I have tried different paths still no avail... ../images.bg.png
2009 Nov 01
0
Ajax calls in application.js (authenticity_token problem?)
Hi, I have a long list (~50) of items which should each be clickable and will send an Ajax request to the server. Now, each item will be calling the same action, just with a different id. Ideally this looks like a clear case of putting the Ajax javascript in application.js. It''s in one place, just call a single function onclick and pass through the id. However there are 2 issues: 1. I
2005 Jul 28
2
CSS and autocompleter
hi. I''m rewriting the code from my own save-yourself-if-you-can implementation of xmlhttprequest to scriptaculous autocompleter, and it''s all fine and dandy, except that I am having difficulty positioning the auto_complete div which contains the results returned by xmlhttprequest. the auto_complete div is always stuck in one place, it starts a little below and half