Latency loading of Ext, ext latency

Source: Internet
Author: User

Latency loading of Ext, ext latency

You may have encountered the following situations when using extjs with multiple threads:
When rendering several components at the same time, if the component content is dynamically read, sometimes the component content is not correctly rendered. For example, if two forms are rendered at the same time, the form fields are dynamically obtained, and the fields in form2 overwrite the fields in form1. This is because extjs is an asynchronous operation, and all loads are simultaneously accessed. There are multiple methods to avoid this problem. Here we provide one: extjs delays loading tasks.

The following is the task code:

// Create a delayed loading object var task = new Ext. util. delayedTask (function () {// put the code snippet getActNameChanged (); // alert (" ");}); // call the delay method of the delayed loading object. The execution parameter is millisecond. In this example, the task is executed with a latency of 0.1 seconds. delay (100 );

 

If you have any questions, please leave a message

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.