diff options
author | connorshea <connor.james.shea@gmail.com> | 2016-04-07 17:40:22 -0600 |
---|---|---|
committer | connorshea <connor.james.shea@gmail.com> | 2016-04-08 17:38:31 -0600 |
commit | 3a196317abe1899b2b3c61fa97bed797c80456b9 (patch) | |
tree | d2f7eff3d3d2319c49ca1569b5461447d35e79d6 /app/controllers/projects/commit_controller.rb | |
parent | 8419f355d6166a9e44c5141c35069cd164c23ad0 (diff) | |
download | gitlab-ce-3a196317abe1899b2b3c61fa97bed797c80456b9.tar.gz |
Add "sprite" parameter to emoji_icon helper
The emoji_icon helper used to display the award emoji in Issue and
Merge Request views. By default the spritesheet is used, but passing
`sprite: false` to the `emoji_icon` helper makes the emoji render as
separate images.
For award emoji displayed by default (e.g. thumbs-up, thumbs-down, and
any that have been awarded to the issue/MR) the independent images are
used. Only when the full emoji menu is opened does the full spritesheet
load.
On a normal issue this change decreases the page load by 670KB or 250KB
depending on pixel density.
Resolves #14334.
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
0 files changed, 0 insertions, 0 deletions