Last active
June 14, 2023 16:36
-
-
Save agragregra/bc76e49070a1d743914d00151f8b939e to your computer and use it in GitHub Desktop.
jQuery HTML Loader (Development feature)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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