Event.ready
Event.ready(() => void)
The event adds handler executed after page is uploaded. When the page was already uploaded, the handler is executed immediately.
import {Event} from 'main.core'; Event.ready(() => { console.log('Page loaded!'); });
© «Bitrix24», 2001-2024
Up