⚡ Upgrade third party js logic improve load speed.
This commit is contained in:
3
assets/js/third-party/comments/artalk.js
vendored
3
assets/js/third-party/comments/artalk.js
vendored
@@ -1,4 +1,5 @@
|
||||
NexT.comments.giscus = function() {
|
||||
/* Artalk comment plugin */
|
||||
NexT.plugins.comments.artalk = function() {
|
||||
const element = '.artalk-container';
|
||||
if (!NexT.CONFIG.artalk
|
||||
|| !NexT.utils.checkDOMExist(element)) return;
|
||||
|
||||
3
assets/js/third-party/comments/giscus.js
vendored
3
assets/js/third-party/comments/giscus.js
vendored
@@ -1,4 +1,5 @@
|
||||
NexT.comments.giscus = function() {
|
||||
/* Giscus comment plugin */
|
||||
NexT.plugins.comments.giscus = function() {
|
||||
const element = '.giscus-container';
|
||||
if (!NexT.CONFIG.page.comments
|
||||
|| !NexT.CONFIG.giscus
|
||||
|
||||
3
assets/js/third-party/comments/livere.js
vendored
3
assets/js/third-party/comments/livere.js
vendored
@@ -1,4 +1,5 @@
|
||||
NexT.comments.giscus = function() {
|
||||
/* LiveRe comment plugin */
|
||||
NexT.plugins.comments.livere = function() {
|
||||
const element = '#lv-container';
|
||||
if (!NexT.CONFIG.livere
|
||||
|| !NexT.utils.checkDOMExist(element)) return;
|
||||
|
||||
3
assets/js/third-party/comments/utterances.js
vendored
3
assets/js/third-party/comments/utterances.js
vendored
@@ -1,4 +1,5 @@
|
||||
NexT.comments.giscus = function() {
|
||||
/* Utterances comment plugin */
|
||||
NexT.plugins.comments.utterances = function() {
|
||||
const element = '.utterances-container';
|
||||
if (!NexT.CONFIG.utterances
|
||||
|| !NexT.utils.checkDOMExist(element)) return;
|
||||
|
||||
3
assets/js/third-party/comments/waline.js
vendored
3
assets/js/third-party/comments/waline.js
vendored
@@ -1,4 +1,5 @@
|
||||
NexT.comments.waline = function() {
|
||||
/* Waline comment plugin */
|
||||
NexT.plugins.comments.waline = function() {
|
||||
const element = '.waline-container';
|
||||
if (!NexT.CONFIG.waline
|
||||
|| !NexT.utils.checkDOMExist(element)) return;
|
||||
|
||||
Reference in New Issue
Block a user