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

  • SEARCH
  • Home
  • 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 8166727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:58:42+00:00 2026-06-06T19:58:42+00:00

All my javascripts stopped working in production when I compiled them into application.js. I

  • 0

All my javascripts stopped working in production when I compiled them into application.js. I fixed this issue by turning asset debug on in production like so:

  config.serve_static_assets = false

  # Compress JavaScripts and CSS
  config.assets.compress = false

  # Don't fallback to assets pipeline if a precompiled asset is missed
  config.assets.compile = true

  # Generate digests for assets URLs
  config.assets.digest = true

  config.assets.debug = true

my question is if there are any problems with leaving asset debug on in production mode besides people being able to see my js files. Is there a setting I’m missing that would allow me to compress the JS and it still would work? I’d like to be able to compress them but the javascript just isn’t loading when I try it.

  • 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-06T19:58:45+00:00Added an answer on June 6, 2026 at 7:58 pm

    Sometimes compressed js just doesn’t work, could be because of the order it was done, or something else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When i added <form> to my web page, all my javascript stopped working, and
Suddenly, all my ASP.NET LinkButtons (that use the href=javascript:__PostBack... syntax) stopped working for all
All of a sudden javascript stopped working in IE when I'm debugging in visual
Since the update to timeline, my resize scripts stopped working on facebook. This is
This code gets html data and should replace all javascript content $.ajax({ url: url,
I am new to all of this so sorry if this is a stupid
This isn't my code, I'm just troubleshooting it. Some code that has been working
$rails -v Rails 3.1.1 I tried this: javascript_include_tag 'application', cache: true But error occurs:
I am in the process of choosing ScriptSharp for coding all my javascripts. I
I have two questions. Am I making a wrong assumption that all my javascripts

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.