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
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -422,7 +422,7 @@ function onepage_load(){
document.getElementById("playpause").removeEventListener("click", Playercontrols.play_pause); document.getElementById("playpause").removeEventListener("click", Playercontrols.play_pause);
document.getElementById("fullscreen").removeEventListener("click", Playercontrols.fullscreen); document.getElementById("fullscreen").removeEventListener("click", Playercontrols.fullscreen);
setTimeout(function(){ //setTimeout(function(){
video_id = ""; video_id = "";
song_title = ""; song_title = "";
@@ -444,14 +444,14 @@ function onepage_load(){
if($("#alreadyfp").length == 1){ if($("#alreadyfp").length == 1){
window.initfp(); window.initfp();
}else { }else {
$("#scripts").append($($(e)[45]).html()); $("#scripts").append($($(e)[63]).html());
} }
if($("#alreadychannel").length == 0){ if($("#alreadychannel").length == 0){
$("head").append("<div id='alreadychannel'></div") $("head").append("<div id='alreadychannel'></div")
} }
$("#channel-load").css("display", "none"); $("#channel-load").css("display", "none");
}, 1000); //}, 1000);
document.title = "Zöff"; document.title = "Zöff";
+1
View File
@@ -227,6 +227,7 @@ var Nochan = {
$.ajax({ $.ajax({
url: chan + "/php/index.php", url: chan + "/php/index.php",
success: function(e){ success: function(e){
//console.log($(e)); //console.log($(e));