{"id":67,"date":"2008-02-22T13:58:50","date_gmt":"2008-02-22T21:58:50","guid":{"rendered":"http:\/\/www.antunkarlovac.com\/blog\/?p=67"},"modified":"2008-02-22T13:58:50","modified_gmt":"2008-02-22T21:58:50","slug":"scriptlimits-attribute","status":"publish","type":"post","link":"https:\/\/www.antunkarlovac.com\/blog\/2008\/02\/22\/scriptlimits-attribute\/","title":{"rendered":"scriptlimits Attribute"},"content":{"rendered":"<p><a href=\"http:\/\/www.openlaszlo.org\/download\/\" target=\"_blank\">OpenLaszlo 4.0.10<\/a> (released yesterday) includes the new <strong>scriptlimits <\/strong>attribute of canvas, which allows developers override Flash&#8217;s default script timeout and recursion settings.\u00c2\u00a0 I wrote about how to <a href=\"\/blog\/?p=56\">change these limits manually<\/a> a while ago, and this has now been turned into a feature of OpenLaszlo.<\/p>\n<p>The syntax is as follows:<\/p>\n<p>&lt;canvas scriptlimits=&#8221;timeout: 300; recursion: 65535&#8243;&gt;<br \/>\n&#8230;<br \/>\n&lt;\/canvas&gt;<\/p>\n<p>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.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>OpenLaszlo 4.0.10 (released yesterday) includes the new scriptlimits attribute of canvas, which allows developers override Flash&#8217;s default script timeout and recursion settings.\u00c2\u00a0 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: &lt;canvas scriptlimits=&#8221;timeout: 300; recursion: 65535&#8243;&gt; &hellip; <a href=\"https:\/\/www.antunkarlovac.com\/blog\/2008\/02\/22\/scriptlimits-attribute\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">scriptlimits Attribute<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/posts\/67"}],"collection":[{"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":0,"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}