Files
Evan You 1be10756a9 feat: async chunk loading optimizations
- load async chunk CSS and nested imports in parallel to the main chunk
- ensure CSS loaded before evaluating main chunk
2021-01-10 14:16:26 -05:00

9 lines
208 B
JavaScript

import './async.css'
const div = document.createElement('div')
div.className = 'async'
document.body.appendChild(div)
div.textContent = `async chunk (this should be teal) ${
getComputedStyle(div).color
}`