Note that there are some explanatory texts on larger screens.

plurals
  1. POUnresponsive javascript notification
    primarykey
    data
    text
    <p>I have a situation where I render items from server in GWT grid on FireFox 3.6+. I have approximately 200 items and I load them in loop:</p> <pre><code>users = myService.getUsers(); for(User user : users){ myPanel.addUser(user); // Pseudocode. Actually i add some labels and text fields... } </code></pre> <p>It tooks a long time to change <code>DOM</code> in this loop, so I got "Unresponsive script" notification. But I can not refactor code or make pagination, I need all 200 items on 1 page loaded at once. </p> <p>Are there any ways to suppress this notification? To notify browser that my script is not hang, but doing something useful?</p> <p><strong>UPD Ok</strong>, here is my code closer. It is a code from big project, and we have many custom components, so, I think, it has no real value.</p> <pre><code> myService.getUsersDetails(searchCriteria, new MyCallback&lt;List&lt;User&gt;&gt;) { @Override protected void response(List&lt;User&gt; result) { gridExpanderPresenter.clear(); int i = 0; for (User user: result) { UserDetailsView detailsView = detailsViewProvider.get(); gridExpanderPresenter.setPresenter(UsersPresenter.this); gridExpanderPresenter.add(detailsView.asWidget()); //Here is DOM manipulation i mentioned if (i++ % 2 == 1) { detailsView.setOdd(); //Setting style here } detailsView.setData(user); } } }); </code></pre> <p>And I think <a href="http://code.google.com/intl/ru/webtoolkit/doc/latest/DevGuideCodingBasicsDelayed.html#incremental" rel="nofollow">this</a> can help me...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload