Trying to lowen loadtime from channel to frontpage

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-10 12:36:04 +01:00
parent fa4e7b3912
commit 6f7cb1d60c
5 changed files with 7 additions and 6 deletions

View File

@@ -422,7 +422,7 @@ function onepage_load(){
document.getElementById("playpause").removeEventListener("click", Playercontrols.play_pause);
document.getElementById("fullscreen").removeEventListener("click", Playercontrols.fullscreen);
setTimeout(function(){
//setTimeout(function(){
video_id = "";
song_title = "";
@@ -444,14 +444,14 @@ function onepage_load(){
if($("#alreadyfp").length == 1){
window.initfp();
}else {
$("#scripts").append($($(e)[45]).html());
$("#scripts").append($($(e)[63]).html());
}
if($("#alreadychannel").length == 0){
$("head").append("<div id='alreadychannel'></div")
}
$("#channel-load").css("display", "none");
}, 1000);
//}, 1000);
document.title = "Zöff";

View File

@@ -227,6 +227,7 @@ var Nochan = {
$.ajax({
url: chan + "/php/index.php",
success: function(e){
//console.log($(e));