Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4082

grid loading animation performance impact

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.0
    • Freshly, 8.6.0
    • Browser Issue, CSS
    • Security Level: Jimmy
    • None

      <zk>
      	<zscript><![CDATA[
      		ListModelList model = new ListModelList(Collections.nCopies(1000, "dummy"));
      	]]></zscript>
      	<grid model="${model}" height="700px" style="background:#ddd">
      		<custom-attributes org.zkoss.zul.grid.rod="true"/>
      		<template name="model">
      			<row>
      				<cell>Cell</cell>
      				<cell>Cell</cell>
      				<cell>Cell</cell>
      			</row>
      		</template>
      	</grid>
      </zk>
      

      When ROD is enabled, the data loading indicator animation ZK-3138 causes constant CPU load and should only be displayed if necessary
      (even if off screen animations may cause CPU load especially in IE)

      The effect is worse when using iceblue theme, since the gif animation has a higher frequency.

      Having multiple grids on a page accumulates the effect as well.

      When disabling ROD the CPU usages is 0%. as expected

        1. screenshot-1.png
          screenshot-1.png
          12 kB
        2. ie-keep-paint.png
          ie-keep-paint.png
          109 kB
        3. ie.png
          ie.png
          109 kB

            rudyhuang rudyhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified