-
- Downloads
Merge branch 'cs-unnecessary-assets' into 'master'
Load d3 only when necessary Now d3 is only loaded on the users' show page and the graphs pages, where it's necessary. Redo of !3993. This decreases page size from 4.6MB to 4.3MB for a given Activity page (before compression), or a savings of 300KB. This is essentially a proof of concept for removing larger dependencies such as the Ace Editor, Chart.js, and Raphael, which will likely provide another 1MB of savings on most pages (again, before compression). See merge request !4394
No related branches found
No related tags found
Showing
- app/assets/javascripts/application.js.coffee 7 additions, 2 deletionsapp/assets/javascripts/application.js.coffee
- app/assets/javascripts/graphs/application.js.coffee 7 additions, 0 deletionsapp/assets/javascripts/graphs/application.js.coffee
- app/assets/javascripts/graphs/stat_graph.js.coffee 0 additions, 0 deletionsapp/assets/javascripts/graphs/stat_graph.js.coffee
- app/assets/javascripts/graphs/stat_graph_contributors.js.coffee 0 additions, 1 deletion...sets/javascripts/graphs/stat_graph_contributors.js.coffee
- app/assets/javascripts/graphs/stat_graph_contributors_graph.js.coffee 0 additions, 2 deletions...avascripts/graphs/stat_graph_contributors_graph.js.coffee
- app/assets/javascripts/graphs/stat_graph_contributors_util.js.coffee 0 additions, 0 deletions...javascripts/graphs/stat_graph_contributors_util.js.coffee
- app/assets/javascripts/users/application.js.coffee 8 additions, 0 deletionsapp/assets/javascripts/users/application.js.coffee
- app/assets/javascripts/users/calendar.js.coffee 0 additions, 0 deletionsapp/assets/javascripts/users/calendar.js.coffee
- app/helpers/javascript_helper.rb 7 additions, 0 deletionsapp/helpers/javascript_helper.rb
- app/views/layouts/_head.html.haml 3 additions, 0 deletionsapp/views/layouts/_head.html.haml
- app/views/projects/graphs/_head.html.haml 1 addition, 0 deletionsapp/views/projects/graphs/_head.html.haml
- app/views/users/show.html.haml 1 addition, 0 deletionsapp/views/users/show.html.haml
- config/application.rb 2 additions, 0 deletionsconfig/application.rb
- spec/javascripts/graphs/stat_graph_contributors_graph_spec.js 1 addition, 1 deletion.../javascripts/graphs/stat_graph_contributors_graph_spec.js
- spec/javascripts/graphs/stat_graph_contributors_util_spec.js 1 addition, 1 deletionspec/javascripts/graphs/stat_graph_contributors_util_spec.js
- spec/javascripts/graphs/stat_graph_spec.js 1 addition, 1 deletionspec/javascripts/graphs/stat_graph_spec.js
File moved
File moved
File moved
app/helpers/javascript_helper.rb
0 → 100644
Please register or sign in to comment