Serhioromano / bootstrap-calendar

Full view calendar with year, month, week and day views based on templates with Twitter Bootstrap.
http://bootstrap-calendar.eivissapp.com/
MIT License
3.02k stars 1.29k forks source link

Rendering large amount of events #766

Open Channa53 opened 5 years ago

Channa53 commented 5 years ago

Hello,

When trying to load ~ 500 events in one day/week, it takes too long to render (about 5 seconds). If you use innerHTML instead of append function here - https://github.com/Serhioromano/bootstrap-calendar/blob/fd5e6fdb69d7e8afdc655b54ffe7a50b8edfffd1/js/calendar.js#L461

it reduces to 0.1 seconds.

The limitation in innerHTML is that any JS in the template file will not be rendered properly.

Will you agree to apply this change?

Thanks!!

cablegunmaster commented 2 years ago

make a pull request.