From b0e15e0cbc445e12e3aabfe90ee2fc6bf2c33782 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 02 May 2022 16:19:26 +0000
Subject: [PATCH] Merge pull request #118 from aidenybai/add-router
---
layouts/partials/head.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 3b14850..1dabaf6 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -65,7 +65,7 @@
// We only mutate document.title and content within .singlePage element
router(".singlePage");
const callback = () => {
- // requestAnimationFrame()
+ // requestAnimationFrame() delays graph draw until SPA routing is finished
const draw = () => {
const container = document.getElementById("graph-container");
// retry if the graph is not ready
--
Gitblit v1.10.0