Skip to content

Instantly share code, notes, and snippets.

@drew-t
Created April 20, 2016 15:33
Show Gist options
  • Save drew-t/6a10629a4127a974e69e7e39f0c787f6 to your computer and use it in GitHub Desktop.
Save drew-t/6a10629a4127a974e69e7e39f0c787f6 to your computer and use it in GitHub Desktop.
1. Combine the files. Having fewer files saves space and takes less time to load.
2. Precompile means that those files are changed into basic css or javascript before they are run.
3. minify means to strip them of whitespace, http://cdn.speedrak.com/images/blog-images/seoblogger-after-minify-css.PNG
4. the file in the browser is showing all js from the entire site vs solely what we have in that file(concatenated)
5. instructions that tell Sprockets which files to require in order to build a single CSS or JavaScript,
application.js, application.css
6. *= require_***** application.css.scss
7. provides an easy way to tell whether two versions of a file are identical, allows for caching: check to see if name has changed
if not, don't pull down file
@Carmer
Copy link

Carmer commented Apr 20, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment