Lazy Loading
Web Components
https://unsplash.com/photos/TdM_fhzmWog
const routeEntries = [
{
route: 'home',
goto: 'xy.com/home'
},
{
route: 'content',
goto: 'xy.com/content'
},
{
route: 'settings',
goto: 'xy.com/settings'
}
}
{
"name": "content",
"version": "1.0.1",
"content": {
"js": [
"/js/bundle.min.js"
],
"css": [
"/css/style.min.css"
]
}
}
window.xy.content.init(
applicationUrl,
path,
dependencies,
...
)
Β
Β