Notice: jQuery support in the runtime is deprecated

0 favourites
  • 4 posts
From the Asset Store
Comprehensive localization solution for Construct 3 projects, no addons required!
  • This is an advance notice of something which is likely to eventually happen in the long term (probably at least 6 months away).

    The C2 runtime ships with jQuery. In 2015, this is really no longer necessary. The browser DOM APIs have very good standards compliance and consistency across platforms, meaning you can often simply make direct DOM calls instead. See for lots of good examples.

    jQuery is also slow. We've worked to minimise the performance overhead of using jQuery in the runtime, but it's still a very easy way to do something expensive per-frame and that will cause a significant CPU usage increase, and is especially taxing on mobile. Direct DOM calls are sometimes cheaper than equivalent jQuery calls, and can be easier to optimise (e.g. eliminating redundant calls). I am of the opinion that these days jQuery has no place in a high-performance game engine.

    Removing jQuery also reduces the download size and complexity of the C2 engine. Removing it could actually improve compatibility in some cases, since we support some platforms which jQuery was not designed for and therefore causes problems.

    So while nothing is likely to happen for a while, please do not write any new plugins that make jQuery calls, since it may be difficult to update when we eventually remove jQuery. Also if it is feasible, please consider removing any use of jQuery from existing plugins.

    We may have a compatibility fallback where jQuery is included only if the project uses plugins that need it, but this cancels out all the above advantages of removing jQuery, so even if that happens it is still best to remove jQuery where possible.

  • Sounds great! Looking forward to this, and seeing the effects on performance. Thanks for the heads up!

  • sad news

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks for the heads up.

    I wrote a dom manipulation plugin that will definitely need some updating, should be fun!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)