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

ε祈祈猫儿з 提交于 2019-12-05 03:29:38
Gary Green

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);

The idea is to fetch all events in a certain period at once, look at the api

http://arshaw.com/fullcalendar/docs/event_data/events_array/

http://arshaw.com/fullcalendar/docs/event_data/events_json_feed/

http://arshaw.com/fullcalendar/docs/event_data/events_function/

Your performance increases once they are loaded initially because by default events are cached.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!