# booking/11.8.4/includes/__js/client/wpbc/wpbc_ready_event.js

Booking Calendar, version 11.8.4. 11 lines.

- Page: https://pluginprobe.com/plugins/booking/11.8.4/code/includes/__js/client/wpbc/wpbc_ready_event.js
- Raw: https://pluginprobe.com/plugins/booking/11.8.4/raw/includes/__js/client/wpbc/wpbc_ready_event.js
- Modified: 2025-09-06T06:38:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/booking/11.8.4/code/includes/__js/client/wpbc/wpbc_ready_event.js#L10-L20`.

```javascript
try {
	var ev = (typeof CustomEvent === 'function') ? new CustomEvent( 'wpbc-ready' ) : document.createEvent( 'Event' );
	if ( ev.initEvent ) {
		ev.initEvent( 'wpbc-ready', true, true );
	}
	document.dispatchEvent( ev );
	console.log( 'wpbc-ready' );
} catch ( e ) {
	console.error( "WPBC event 'wpbc-ready' failed!", e );
}

```
