slowdown
This commit is contained in:
parent
4c66e9eb7d
commit
df2e2aa9b4
|
@ -69,6 +69,13 @@ Core.prototype.init = function() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Incase were too fast
|
||||||
|
function gwDefer() {
|
||||||
|
console.log(new Date().getTime() + " Defer");
|
||||||
|
if($(".guilds-wrapper").size() > 0) {
|
||||||
|
console.log(new Date().getTime() + " Defer Loaded");
|
||||||
|
|
||||||
|
|
||||||
utils = new Utils();
|
utils = new Utils();
|
||||||
emoteModule = new EmoteModule();
|
emoteModule = new EmoteModule();
|
||||||
quickEmoteMenu = new QuickEmoteMenu();
|
quickEmoteMenu = new QuickEmoteMenu();
|
||||||
|
@ -80,11 +87,7 @@ Core.prototype.init = function() {
|
||||||
this.initSettings();
|
this.initSettings();
|
||||||
this.initObserver();
|
this.initObserver();
|
||||||
|
|
||||||
//Incase were too fast
|
|
||||||
function gwDefer() {
|
|
||||||
console.log(new Date().getTime() + " Defer");
|
|
||||||
if($(".guilds-wrapper").size() > 0) {
|
|
||||||
console.log(new Date().getTime() + " Defer Loaded");
|
|
||||||
var guilds = $(".guilds li:first-child");
|
var guilds = $(".guilds li:first-child");
|
||||||
|
|
||||||
guilds.after($("<li></li>", { id: "bd-pub-li", css: { "height": "20px", "display": settingsCookie["bda-gs-1"] == true ? "" : "none" } }).append($("<div/>", { class: "guild-inner", css: { "height": "20px", "border-radius": "4px" } }).append($("<a/>").append($("<div/>", { css: { "line-height": "20px", "font-size": "12px" }, text: "public", id: "bd-pub-button" })))));
|
guilds.after($("<li></li>", { id: "bd-pub-li", css: { "height": "20px", "display": settingsCookie["bda-gs-1"] == true ? "" : "none" } }).append($("<div/>", { class: "guild-inner", css: { "height": "20px", "border-radius": "4px" } }).append($("<a/>").append($("<div/>", { css: { "line-height": "20px", "font-size": "12px" }, text: "public", id: "bd-pub-button" })))));
|
||||||
|
@ -511,7 +514,7 @@ QuickEmoteMenu.prototype.initEmoteList = function() {
|
||||||
for(var emote in emotesTwitch.emotes) {
|
for(var emote in emotesTwitch.emotes) {
|
||||||
if(emotesTwitch.emotes.hasOwnProperty(emote)) {
|
if(emotesTwitch.emotes.hasOwnProperty(emote)) {
|
||||||
var id = emotesTwitch.emotes[emote].image_id;
|
var id = emotesTwitch.emotes[emote].image_id;
|
||||||
// emoteMenuBody.append($("<div/>" , { class: "emote-container" }).append($("<img/>", { class: "emote-icon", id: emote, alt: "", src: "https://static-cdn.jtvnw.net/emoticons/v1/"+id+"/1.0", title: emote })));
|
emoteMenuBody.append($("<div/>" , { class: "emote-container" }).append($("<img/>", { class: "emote-icon", id: emote, alt: "", src: "https://static-cdn.jtvnw.net/emoticons/v1/"+id+"/1.0", title: emote })));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue