When I look at the source of any of my views generated in rails 3.1 mountable engine, I see all css and javascripts loaded. Isn't that inefficient? Wouldn't it be more efficient that I load the css and js which I need for that particular page?
In rails 3.1 mountable engine app all the css and js are loaded for each request. won't that degrade the performance or be inefficient?
152 views Asked by phoenixwizard At
1
There are 1 answers
Related Questions in RUBY-ON-RAILS
- How to display legend box in tooltip text for amCharts 5 in Rails application?
- how to integrate cashfree payment gateway in ruby on rails project
- RSpec Capybara throwing Selenium error when trying to click a button with browser confirm
- rails minitest not picking up fixture properly, instance variable not percolating
- Duplicate GET requests - Rails & Heroku
- How to stub out current_user in JWT model for Rspec?
- NameError in Home#index
- Verifying Google Identity OAuth2 token with Ruby
- Error WebMock::NetConnectNotAllowedError in testing with stub using minitest in rails (using Faraday)
- why is mission_control-jobs erroring with load path error?
- Rescuing validation errors from a polymorphic association
- New error on random number assigned to local variable , Rails
- How to fix error in model with gem lockbox
- Images uploaded via Active Storage not displaying in Active Admin or on certain devices
- controller test_methods generating two errors intermittently
Related Questions in RUBY-ON-RAILS-3.1
- Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead
- Rails `require': cannot load such file -- matrix
- How to set SameSite attribute to 'None; Secure' in Rails3.1.12 and Ruby1.9.3
- How to get current and previous financial year Ruby?
- After including rails engine layout in application gives routing error?
- Multiple after_update callbacks with attribute change conditions are triggering only the first one
- Manifest requires output filename
- index is getting called instead of show
- Tagged logging in Rails 3.1.12
- Namespaced models don't work with polymorphism and I need a workaround
- How we can upload multiple images on cloudinairy in slots with rails
- Rails: Mailer view with a different name from its action
- Ruby On Rails error during run the project
- How to set website logo image on signup mail in rails?
- How To Download File In DWFX (AutoCad) Format In Rails Active Admin In Rails 4.2
Related Questions in RUBY-ON-RAILS-PLUGINS
- How to include a plugin/engine in a rails application?
- Select local video, shorten length, then upload video in a rails application
- Remote link on isolated rails plugin not working
- Best approach to mark specific Rails Models to be used in a module
- How to ensure callback order?
- Add methods to a Rails engine model from a Rails plugin
- Could not install Mobility gem on Rails plugin
- gemspec error on creating new rails engine
- Capybara doesn't find my route in engine
- Why do modern rails plugin gems favor config initializers over Railtie's config hook?
- Modify Rails i18n config during a test?
- Extending application's model in rails engine
- Ruby ArgumentError: unknown keyword, but not sure why
- select multiple facets with blacklight
- How to use classes from plugin's "lib" folder?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Are you in the development environment? In production, all of your assets will be compressed and precompiled, so that only application.js and application.css are linked. This is the best way, because the js and css for your whole site is loaded into the browser cache, so that when visiting different pages, it doesn't have to make a bunch of extra server requests.