commento.js: load CSS async
This commit is contained in:
parent
c8a2ece0d6
commit
d26b6f6e9f
@ -374,8 +374,6 @@
|
||||
commenters = Object.assign({}, commenters, resp.commenters)
|
||||
configuredOauths = resp.configuredOauths;
|
||||
|
||||
cssLoad(cdn + "/css/commento.css", "window.commento.loadCssOverride()");
|
||||
|
||||
call(callback);
|
||||
});
|
||||
}
|
||||
@ -1545,7 +1543,6 @@
|
||||
var mainArea = $(ID_MAIN_AREA);
|
||||
var modTools = $(ID_MOD_TOOLS);
|
||||
var loggedContainer = $(ID_LOGGED_CONTAINER);
|
||||
var footer = $(ID_FOOTER);
|
||||
|
||||
attrSet(mainArea, "style", "");
|
||||
|
||||
@ -1557,8 +1554,6 @@
|
||||
attrSet(loggedContainer, "style", "");
|
||||
}
|
||||
|
||||
attrSet(footer, "style", "");
|
||||
|
||||
nameWidthFix();
|
||||
loadHash();
|
||||
}
|
||||
@ -1640,12 +1635,15 @@
|
||||
|
||||
mainAreaCreate();
|
||||
|
||||
var footer = footerLoad();
|
||||
cssLoad(cdn + "/css/commento.css", "window.commento.loadCssOverride()");
|
||||
|
||||
selfGet(function() {
|
||||
commentsGet(function() {
|
||||
modToolsCreate();
|
||||
rootCreate(function() {
|
||||
commentsRender();
|
||||
footerLoad();
|
||||
append(root, footer);
|
||||
attrSet(root, "style", "");
|
||||
call(callback);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user