Skip to content

Instantly share code, notes, and snippets.

Created Jul 31, 2019
What would you like to do?
Lazy load JS
const scripts = [
scripts.forEach(file => {
const script = document.body.appendChild(document.createElement('script'));
script.async = false;
script.src = file;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment