mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Significantly speeding up feed chooser loading.
This commit is contained in:
parent
41d79247f3
commit
4f2b773da9
1 changed files with 9 additions and 5 deletions
|
@ -567,23 +567,27 @@
|
|||
this.flags['has_chosen_feeds'] = this.detect_all_inactive_feeds();
|
||||
this.make_feeds_folder($feed_list, folders, 0);
|
||||
this.$s.$feed_link_loader.fadeOut(250);
|
||||
|
||||
|
||||
if (folders.length) {
|
||||
$('.NB-task-manage').removeClass('NB-disabled');
|
||||
$('.NB-callout-ftux').fadeOut(500);
|
||||
this.load_sortable_feeds();
|
||||
$('.feed', $feed_list).tsort('.feed_title');
|
||||
$('.folder', $feed_list).tsort('.folder_title_text');
|
||||
}
|
||||
|
||||
|
||||
if (NEWSBLUR.Globals.is_authenticated && this.flags['has_chosen_feeds']) {
|
||||
this.start_count_unreads_after_import();
|
||||
this.force_feeds_refresh($.rescope(this.finish_count_unreads_after_import, this));
|
||||
} else if (!this.flags['has_chosen_feeds'] && folders.length) {
|
||||
_.defer(_.bind(this.open_feedchooser_modal, this), 100);
|
||||
return;
|
||||
} else if (NEWSBLUR.Globals.is_authenticated) {
|
||||
this.setup_ftux_add_feed_callout();
|
||||
}
|
||||
|
||||
if (folders.length) {
|
||||
this.load_sortable_feeds();
|
||||
$('.feed', $feed_list).tsort('.feed_title');
|
||||
$('.folder', $feed_list).tsort('.folder_title_text');
|
||||
}
|
||||
},
|
||||
|
||||
detect_all_inactive_feeds: function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue