Upped performance of load somewhat for channel-load

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-03 16:40:49 +02:00
parent 7747e29158
commit 08f72e1003
3 changed files with 98 additions and 37 deletions

View File

@@ -15,6 +15,8 @@ var Channel = {
Helper.addClass("#results", "client-results-height");
Helper.addClass(".pagination-results", "client-pagination-height");
Helper.addClass(".control-list", "client-control-list");
} else {
Player.soundcloud_player = document.querySelector("#soundcloud_player");
}
if(!Admin.logged_in) Admin.display_logged_out();
number_suggested = 0;
@@ -29,6 +31,7 @@ var Channel = {
}
window.onpopstate = function(e){
console.log(e)
Channel.onepage_load();
};