mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
11 lines
268 B
JavaScript
11 lines
268 B
JavaScript
import './static.js'
|
|
|
|
const link = document.head.appendChild(document.createElement('link'))
|
|
link.rel = 'preload'
|
|
link.as = 'style'
|
|
link.href = new URL('./dynamic.css', import.meta.url).href
|
|
|
|
import('./dynamic.js').then(async ({ lazyLoad }) => {
|
|
await lazyLoad()
|
|
})
|