seankenny / fullcalendar

Full-sized drag & drop event calendar (jQuery plugin)
http://arshaw.com/fullcalendar/
MIT License
60 stars 39 forks source link

When fetching resources with a URL, the URL is hit too many times #38

Closed jsgoupil closed 10 years ago

jsgoupil commented 10 years ago

The method buildDayTableHeadHTML uses code like this: var resource = resources()[col]; which loops over each columns.

This makes a call per column to the server.

seankenny commented 10 years ago

Hi - the resources() function (referenced to fetchResources() in ResourcesManager.js) makes use of a cache flag in order to cache after the first resources are fetched. This would/should prevent multiple http calls from occurring. Are you seeing multiple http calls? If so, can you provide a http://plnkr.co/ example of what you are seeing?

Thanks!

jsgoupil commented 10 years ago

Here... 43 requests: http://plnkr.co/edit/VbiFmWOuRct38m1WN7El?p=info