Antun’s Blog

Notes on OpenLaszlo, LZX and Rich Internet Application Development

Antun’s Blog header image 2

scriptlimits Attribute

February 22nd, 2008 · 1 Comment

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

1 response so far ↓

  • 1 Kevin Meixner // Jun 22, 2010 at 8:12 am

    Thank you for this, that helps out a lot!

Leave a Comment

Need to post code in a comment? Read this first!