Skip to content

Instantly share code, notes, and snippets.

@agragregra
agragregra / jQuery HTML Loader
Last active June 14, 2023 16:36
jQuery HTML Loader (Development feature)
$('.loader').each(function() {
let loadContent = `parts/${ $(this).text() }`
$(this).load(loadContent)
})
<div class="loader">part.html</div>