UNPKG

coach-core

Version:
26 lines (22 loc) 666 B
(function () { 'use strict'; const connectionType = util.getConnectionType(); let score = 100; let message = ''; if (connectionType.indexOf('spdy') !== -1) { score = 0; message = 'The page is using SPDY. Chrome dropped support for SPDY in Chrome 51. Change to HTTP/2 asap.'; } return { id: 'spdy', title: 'EOL for SPDY in Chrome', description: 'Chrome dropped supports for SPDY in Chrome 51, upgrade to HTTP/2 as soon as possible. The page has more users (browsers) supporting HTTP/2 than supports SPDY.', advice: message, score: score, weight: 1, offending: [], tags: ['bestpractice'] }; })();