added more conditional checks for javascripts to reduce computation load
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
Danbooru.Comment = {};
|
||||
|
||||
Danbooru.Comment.initialize_all = function() {
|
||||
this.initialize_response_link();
|
||||
this.initialize_reply_links();
|
||||
this.initialize_expand_links();
|
||||
if ($("#c-posts").length || $("#c-comments").length) {
|
||||
this.initialize_response_link();
|
||||
this.initialize_reply_links();
|
||||
this.initialize_expand_links();
|
||||
}
|
||||
}
|
||||
|
||||
Danbooru.Comment.quote_message = function(data) {
|
||||
|
||||
Reference in New Issue
Block a user