Files
gitlabhq/app/assets/javascripts
Jacob Schatz e45d6043e8 Merge branch 'js-content-for' into 'master'
Re-implement page-specific JS in a better way.

## What does this MR do?

This rebuilds the way we do page-specific JavaScript assets for a few reasons:

- The current implementation does not work with Subresource Integrity (!4808)
- The current implementation doesn't allow caching of libraries because each page we hook up with this system will have a separate application.js. Meaning that for every page that uses Ace Editor, we'd have to load Ace Editor plus any GitLab-specific scripts in the same file, making local caching of just Ace Editor impossible.
- The current implementation is rather hacky.

## Are there points in the code the reviewer needs to double check?

That Sprockets doesn't choke on this when we use precompiled assets.

## What are the relevant issue numbers?

#14372

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

cc: @jschatz1 @pavelloz

Thanks to @pavelloz for his example implementation which was very useful.

See merge request !4883
2016-06-24 20:51:02 +00:00
..
2016-06-23 12:13:09 -05:00
2016-06-23 10:55:40 -06:00
2016-06-23 10:55:40 -06:00
2016-06-20 14:48:28 -05:00
2016-03-20 10:58:59 -07:00
2016-04-21 00:20:13 +00:00
2016-04-06 11:08:40 +01:00
2016-06-03 17:14:23 -05:00
2014-12-30 11:46:48 +02:00
2016-04-18 13:45:26 +01:00
2016-06-16 12:53:21 -05:00
2016-06-22 17:32:06 +01:00
2016-03-10 13:55:01 +01:00
2016-06-17 18:31:37 +01:00
2016-04-26 09:03:04 +01:00
2016-06-15 18:33:18 +01:00
2016-06-09 17:19:14 +01:00
2015-10-06 11:43:32 +03:00
2016-03-03 13:09:58 +01:00