Skip to content

Instantly share code, notes, and snippets.

View sifigi4335's full-sized avatar

Tampere sifigi4335

View GitHub Profile
@sifigi4335
sifigi4335 / comment-section.html
Created May 16, 2022 15:11 — forked from jdvp/comment-section.html
OUTDATED : See the file here instead: https://github.com/jdvp/jekyll-comments-google-forms Version of comment-section.html that allows for scripts to be loaded after the page loads. This ensures scripts aren't loaded for users when they aren't even going to view the comments
{% if site.comment-read %}
<!-- Our own JS starts here -->
<script>
/* Initial load of the comments section contnet. This ensures that we are only loading
JQuery and other scripts once we actually need them */
async function initialCommentLoad() {
/* Load JQuery */
var loadJquery = document.createElement("script");
loadJquery.type = "text/javascript";
loadJquery.src = "https://code.jquery.com/jquery-3.6.0.min.js";