Antun’s Blog

Notes on OpenLaszlo, LZX and Rich Internet Application Development

Antun’s Blog header image 2

scriptlimits Attribute

February 22nd, 2008 · No Comments

OpenLaszlo 4.0.10 (released yesterday) includes the new scriptlimits attribute of canvas, which allows developers override Flash’s default script timeout and recursion settings.  I wrote about how to change these limits manually a while ago, and this has now been turned into a feature of OpenLaszlo.

The syntax is as follows:

<canvas scriptlimits=”timeout: 300; recursion: 65535″>

</canvas>

You should avoid setting the limits high to avoid the scrip-running-slowly error on poorly-performing applications. Instead reduce the limits when testing your application, to surface performance problems sooner on faster machines. Fix the root causes of poor performance, then increase the limits for deployment.

Tags: LZX Tips · OpenLaszlo

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment