diff --git a/2024/12/10/hello-world/index.html b/2024/12/10/hello-world/index.html index 351d92d..a987698 100644 --- a/2024/12/10/hello-world/index.html +++ b/2024/12/10/hello-world/index.html @@ -56,7 +56,7 @@ document.head.appendChild(link) }), addGlobalFn: (key, fn, name = false, parent = window) => { - if (!false && key.startsWith('pjax')) return + if (!true' && key.startsWith('pjax')) return const globalFn = parent.globalFn || {} globalFn[key] = globalFn[key] || {} globalFn[key][name || Object.keys(globalFn[key]).length] = fn @@ -165,7 +165,7 @@ preloader.initLoading() window.addEventListener('load', preloader.endLoading) - if (false) { + if (true') { btf.addGlobalFn('pjaxSend', preloader.initLoading, 'preloader_init') btf.addGlobalFn('pjaxComplete', preloader.endLoading, 'preloader_end') } @@ -203,4 +203,67 @@