Title: Feature request: AJAX
Last modified: December 20, 2023

---

# Feature request: AJAX

 *  Resolved [acleach](https://wordpress.org/support/users/acleach/)
 * (@acleach)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/feature-request-ajax/)
 * I have a calendar list (forthcoming 9 days) in a sidebar widget. That combines
   five separate Google calendars and they have a number of years’ data in each.
   Rendering the week’s calendar takes more than five seconds: as a widget, WordPress
   has to render the widget before the page can be displayed, making the site really
   slow.
 * I have managed to implement this as an AJAX request so that the page is rendered
   and, once displayed, the calendar is fetched. This means that pages are quickly
   made available for the user. (This is implemented via a custom plugin which captures
   the AJAX request and creates the calendar using its own new R34ICS object. The
   Javascript function receives the calendar code and injects it into a container
   element in the sidebar.)
 * There is a small downside in that the sidebar’s pending AJAX request (a) stops
   any other AJAX request — they are queued behind it; (b) can’t easily be cancelled
   to go to another page. I reckon these are acceptable given the huge increase 
   in the site’s overall responsiveness.
 * Feature request:
 * Provide an additional option “ajax=true” which would wrap the output in a Javascript
   function to lazy-load the calendar content.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * (@room34)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/feature-request-ajax/#post-17292466)
 * This feature already exists.
 * [https://icscalendar.com/icsdocs/#ajax](https://icscalendar.com/icsdocs/#ajax)

Viewing 1 replies (of 1 total)

The topic ‘Feature request: AJAX’ is closed to new replies.

 * ![](https://ps.w.org/ics-calendar/assets/icon.svg?rev=3427980)
 * [ICS Calendar](https://wordpress.org/plugins/ics-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ics-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ics-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/ics-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ics-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ics-calendar/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)

 * 1 reply
 * 2 participants
 * Last reply from: [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/feature-request-ajax/#post-17292466)
 * Status: resolved