CC-4873: Airtime takes 7 seconds to load 32K (very small) from db

-minor cleanup of function init
This commit is contained in:
Martin Konecny 2013-01-24 14:09:14 -05:00
parent c3f2bf57de
commit 56c61d4ab7
1 changed files with 2 additions and 4 deletions

View File

@ -326,7 +326,7 @@ function eventResize( event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, vie
}); });
} }
function preload () { function preloadEventFeed () {
var url = baseUrl+'Schedule/event-feed-preload'; var url = baseUrl+'Schedule/event-feed-preload';
var d = new Date(); var d = new Date();
@ -335,7 +335,6 @@ function preload () {
createFullCalendar({calendarInit: calendarPref}); createFullCalendar({calendarInit: calendarPref});
}); });
} }
preload();
var initialLoad = true; var initialLoad = true;
function getFullCalendarEvents(start, end, callback) { function getFullCalendarEvents(start, end, callback) {
@ -355,8 +354,6 @@ function getFullCalendarEvents(start, end, callback) {
callback(json.events); callback(json.events);
}); });
} }
//TODO: Look at the type of calendar view...we may be returning too much information
} }
function checkSCUploadStatus(){ function checkSCUploadStatus(){
@ -559,6 +556,7 @@ function alertShowErrorAndReload(){
window.location.reload(); window.location.reload();
} }
preloadEventFeed();
$(document).ready(function(){ $(document).ready(function(){
setInterval( "checkSCUploadStatus()", 5000 ); setInterval( "checkSCUploadStatus()", 5000 );
setInterval( "getCurrentShow()", 5000 ); setInterval( "getCurrentShow()", 5000 );