diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml
index d50cd751d..dd17fce36 100644
--- a/app/views/javascript/main.phtml
+++ b/app/views/javascript/main.phtml
@@ -143,16 +143,18 @@ function next_entry() {
last_active = $(".flux:last");
new_active = old_active.nextAll (".flux:first");
- if(last_active.attr("id") == new_active.attr("id")) {
- load_more_posts ();
- }
-
if (new_active.hasClass("flux")) {
toggleContent (new_active, old_active);
} else if (old_active[0] === undefined &&
new_active[0] === undefined) {
toggleContent (first_active, old_active);
}
+
+
+ if(last_active.attr("id") == new_active.attr("id")) {
+ load_more_posts ();
+ }
+
}
function init_img () {