UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

23 lines (22 loc) 708 B
/** * DevExtreme (esm/__internal/integration/jquery/hold_ready.js) * Version: 25.2.7 * Build date: Tue May 05 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import readyCallbacks from "../../core/utils/m_ready_callbacks"; import { themeReadyCallback } from "../../ui/m_themes_callback"; import jQuery from "jquery"; if (jQuery && !themeReadyCallback.fired()) { const holdReady = jQuery.holdReady || jQuery.fn.holdReady; holdReady(true); themeReadyCallback.add(() => { readyCallbacks.add(() => { holdReady(false) }) }) }