Skip to content

Conversation

@samarpanda
Copy link
Owner

@samarpanda samarpanda commented Jul 31, 2018

[WIP] lazy loading modules using webpack 4

const loadFooter = () => import('./footer')// Lazy loading footer configured
button1.addEventListener('click', (event) => {
	loadFooter('./footer')
		.then((fm) => {
			console.log(fm.footer)
			document.body.appendChild(fm.footer)
		})
})

@samarpanda samarpanda changed the title Lazy load modules using webpack 4 [WIP] Lazy load modules using webpack 4 Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants