Skip to content

Instantly share code, notes, and snippets.

@agragregra
Last active June 14, 2023 16:36
Show Gist options
  • Save agragregra/bc76e49070a1d743914d00151f8b939e to your computer and use it in GitHub Desktop.
Save agragregra/bc76e49070a1d743914d00151f8b939e to your computer and use it in GitHub Desktop.
jQuery HTML Loader (Development feature)
$('.loader').each(function() {
let loadContent = `parts/${ $(this).text() }`
$(this).load(loadContent)
})
<div class="loader">part.html</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment