Commit acd2c7ad authored by Mike Greiling's avatar Mike Greiling

Merge branch 'dmishunov-perf-http2-optimization' into 'master'

Optimizing JS bundle for HTTP2

See merge request gitlab-org/gitlab!32077
parents 801aaacd d7056aec
......@@ -255,7 +255,7 @@ module.exports = {
moduleIds: 'hashed',
runtimeChunk: 'single',
splitChunks: {
maxInitialRequests: 4,
maxInitialRequests: 20,
cacheGroups: {
default: false,
common: () => ({
......
......@@ -3,7 +3,7 @@
require 'spec_helper'
RSpec.describe 'Sentry' do
let(:sentry_path) { '/sentry.chunk.js' }
let(:sentry_regex_path) { '\/sentry.*\.chunk\.js' }
it 'does not load sentry if sentry is disabled' do
allow(Gitlab.config.sentry).to receive(:enabled).and_return(false)
......@@ -22,7 +22,7 @@ RSpec.describe 'Sentry' do
def has_requested_sentry
page.all('script', visible: false).one? do |elm|
elm[:src] =~ /#{sentry_path}$/
elm[:src] =~ /#{sentry_regex_path}$/
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment