➡️ How can we deliver each browser its own JS and CSS ?
➡️ File size ? Execution time ? Mobile friendly ?
➡️ Better tooling ? Browsers improvements ?
targets: [ { chrome: 43, explorer: 11,
edge: 12,
firefox: 38,
safari: 8
}, {
chrome: 57,
firefox: 52,
safari: '10.1'
}
],
chrome: { '43': { 'dash-list': { js: ['dash-list.47ac51.js'] } }, '57': { 'dash-list': { js: ['dash-list.201b99.js'] } } }, firefox: { '38': { 'dash-list': { js: ['dash-list.47ac51.js'] } }, [...]
· POST /config
· GET /bundle?user-agent=...&entry-points=dash-list,monitors
{
'dash-list': ['dash-list.123456.min.js'],
'monitors': ['bundle1.<hash>.min.js', 'bundle2.<hash>.min.js']
};
➡️ Better ways to do it: redirections
➡️ 6% smaller bundle, 6.5% shorter execution time
➡️ More bundles to test, build step more complex / long
➡️ Infrastructure dependant