Sie befinden Sich nicht im Netzwerk der Universität Paderborn. Der Zugriff auf elektronische Ressourcen ist gegebenenfalls nur via VPN oder Shibboleth (DFN-AAI) möglich. mehr Informationen...
JRuby Rails Web Application Development, 2014, p.31-33
2014

Details

Autor(en) / Beteiligte
Titel
Precompiling CSS and JavaScript Assets
Ist Teil von
  • JRuby Rails Web Application Development, 2014, p.31-33
Ort / Verlag
Switzerland: Springer International Publishing AG
Erscheinungsjahr
2014
Link zum Volltext
Quelle
Alma/SFX Local Collection
Beschreibungen/Notizen
  • Rails 3.1 introduced the Sprockets based assets pipeline to precompile and merge all the different stylesheets into one and merge all the JavaScripts into one for the deployed web application. Precompiling and merging assets reduces the time to load web pages as fewer requests to assets are required. Also, if compression is used for assets compilation the amount of data transfer is reduced. Sprockets makes use of the manifest files app/assets/javascripts/application.js and app/assets/stylesheets/application.css, which contain directives, to select resources to merge and serve as static assets by the web server. By default, the application.js consists of require directives for the jquery.js and jquery_ujs.js that are in the Sprockets search path, and the require_tree directive to recursively include all JavaScript files in the specified directory, which is the ‘.’ directory (current directory). To include JavaScript files without recursion use the require_directory directive.
Sprache
Englisch
Identifikatoren
ISBN: 3319039334, 9783319039336
ISSN: 2191-5768
eISSN: 2191-5776
DOI: 10.1007/978-3-319-03934-3_8
Titel-ID: cdi_springer_books_10_1007_978_3_319_03934_3_8

Weiterführende Literatur

Empfehlungen zum selben Thema automatisch vorgeschlagen von bX