Skip to content
  • 2 Votes
    3 Posts
    4k Views
    barisB

    Due to changes introduced to loading javascript assets in 1.7.0, using jquery in widgets requires waiting for the page load event.

    Sample widget for 1.7.0+

    if (window.jQuery) { doStuffThatUsesJquery(); } else { window.addEventListener('load', doStuffThatUsesJquery); }