Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FullCalendar - What level of events rendering performance should I expect?

I am rendering 100 events in FullCalendar using $('#CalendarPlugin').fullCalendar('renderEvent', {} ); being called 100 times in a loop.

The browser performance I'm seeing on my computer (Core2 6600 @ 2.4GHz with 4GB RAM)

  • Chrome: 3 seconds
  • Firefox: 6 seconds
  • IE9: 6 seconds

Is this an expected level of performance? Is there a faster way to load and render events?

Once they've been added to FullCalendar, moving between months and re-rendering it much faster. It's just the initial loading of them using renderEvent that's slow.

like image 268
Peter Bridger Avatar asked May 10 '11 12:05

Peter Bridger


1 Answers

The developer was working on performance enhancements for the 1.4.4 version, but hitting the plugin 100 times in a loop is still hefty.

One technique you could try to improve performance is to use an object in addEventSource as this waits and renders altogether I believe:

 $("#calendar").fullCalendar("addEventSource", msg.items);
like image 112
Gary Green Avatar answered Sep 28 '22 16:09

Gary Green