Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9156519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:47:39+00:00 2026-06-17T12:47:39+00:00

I have a large rails app with hundreds of coffee script files. Sometimes when

  • 0

I have a large rails app with hundreds of coffee script files.

Sometimes when I make a tiny change in a coffeescript file or I switch the branch the whole assets are being precompiled and I have to wait a long time for load the page:

Started GET "/assets/application.js" for 127.0.0.1 at 2013-01-11 19:39:45 +0100
Compiled sprockets/commonjs.js  (0ms)  (pid 18142)
Compiled jquery.js  (2ms)  (pid 18142)
Compiled jquery_ujs.js  (0ms)  (pid 18142)
Compiled underscore.js  (0ms)  (pid 18142)
Compiled backbone.js  (0ms)  (pid 18142)
Compiled backbone_rails_sync.js  (0ms)  (pid 18142)
Compiled handlebars.runtime.js  (0ms)  (pid 18142)
Compiled moment.js  (0ms)  (pid 18142)
...and so on

I use the following assets configuration config/development.rb:

# Do not compress assets
config.assets.compress = false

# Expands the lines which load the assets
config.assets.debug = false

When I set config.assets.debug = false I have to wait quite long time for load hundreds of js files.
The question is: how to find the golden mean? How to optimize assets configuration in the development mode for the large app?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:47:40+00:00Added an answer on June 17, 2026 at 12:47 pm

    It’s a sad truth, but you don’t. There is not a clean way to solve this.

    However, there are some patterns you could follow to minimize your pain which if I understand correctly is having to wait a lot in development to see the changes.

    As said these have been seen here1 and here2.

    1. Take a look at item 2 from here1.
    2. Break your assets in many files. This will imply in fewer lines being processed when changes occur.
    3. Prefer css/js, they may not be as cool but require no compilation.
    4. Find something interesting to do while assets precompile. It may lower productivity but sure kills the pain.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Rails app that processes a large (millions) number of records in
In my Rails 3.0 app I have a series of very large search forms
I'm building a Rails app that is probably going to have a large amount
I have this javascript inside a rails app: <script type=text/javascript> var buttons = document.querySelectorAll('[data-radio-sub-questions]');
I have been working to deploy a relatively large Rails app (Rails 2.3.5) and
I'm planning on creating an app (Rails) that will have a very large collection
I have been building a large scale rails app and it has come time
I am fairly new to Rails and I have never developed a large application.
i have large numbers of text files and i am in problem that i
I have large video files (~100GB) that are local on my machine. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.