Loading ...
Sorry, an error occurred while loading the content.

37100Re: Drag Drop - High CPU in Internet Explorer

Expand Messages
  • ajaxgames
    Sep 2, 2008
    • 0 Attachment
      Thanks Dav

      I don't have a working demo on the internet at the moment and it's
      pretty big and complex to post, I will let you know when it's
      available. However I saw your suggestion in the other thread about
      only creating the DD instance on mousedown.

      That seemed like it could work except in my case every DD is also a
      target (I have a bunch of objects on a page I can D&D on each other)
      so when I instatiate them as DDTargets (instead of DD) same problem.
      I am now trying not using the DDTargets, the problem is of course
      that with onInvalidDrop I don't know where I landed but maybe I can
      figure it out using XY of objects and comparing... Seems like a lot
      of work but if it works out it will probably be worth it. Unless
      there is an easier way to figure out where the drop landed without
      having targets.

      Thanks again

      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...>
      wrote:
      >
      > ajaxgames --
      >
      > I would be happy to look, but I need a working repro case..
      >
      > Can you post a link, if you don't want to post it to the group,
      feel free to email me off list..
      >
      > Dav
      >
      > Dav Glass
      > dav.glass@...
      > blog.davglass.com
      >
      >
      >
      >
      > + Windows: n. - The most successful computer virus, ever. +
      > + A computer without a Microsoft operating system is like a dog
      > without bricks tied to its head +
      > + A Microsoft Certified Systems Engineer is to computing what a
      > McDonalds Certified Food Specialist is to fine cuisine +
      >
      >
      >
      > ----- Original Message ----
      > > From: ajaxgames <ajaxgames@...>
      > > To: ydn-javascript@yahoogroups.com
      > > Sent: Sunday, August 31, 2008 1:02:22 PM
      > > Subject: [ydn-javascript] Re: Drag Drop - High CPU in Internet
      Explorer
      > >
      > > I have the same issue, if more than a few DDs or DDProxys are
      defined
      > > in a page, IE7 will remain at high cpu even when doing nothing
      with
      > > the page. If the window is minimized then cpu usage does drop
      after a
      > > while.
      > >
      > > Can someone please take a look. If this can't be helped, can you
      > > provide any tips or workarounds to ease cpu load while keeping
      more
      > > DD elements on the page?
      > >
      > >
      > > Thank you.
      > >
      > >
      > > --- In ydn-javascript@yahoogroups.com, "dmhst1" wrote:
      > > >
      > > > Hi!
      > > >
      > > > I'm working on implementing Yahoo's/YUI Drag and Drop utility
      on my
      > > > site. I've been able to make it work and it is great, so long
      as I
      > > > have a very small list of items in my list (20 or so). But in
      doing
      > > > some stress testing, I noticed the CPU hits over 50% on my
      system
      > > if I
      > > > make the lists longer. Note that this CPU hit occurs upon
      loading
      > > the
      > > > page, even before you move your mouse or drag any of the
      items. I'd
      > > > expect an immediate CPU hit upon page load, and another hit
      during
      > > the
      > > > act of dragging, but I'm confused as to why IE would suck up
      CPU
      > > after
      > > > the page has been rendered. (Yes, we've tried this page on
      several
      > > > other machines -- it's not just mine).
      > > >
      > > > A sample of the page is here:
      > > > http://www.newsroomsolutions.com/yuiissue/
      > > >
      > > > I've removed some references to our back-end, which are
      unrelated to
      > > > this problem. Is this YUI widget only good for a very small
      list?
      > > I
      > > > find that really hard to believe. Thanks for your help.
      > > >
      > > > Damian
      > > >
      > >
      > >
      > >
      > > ------------------------------------
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      >
    • Show all 8 messages in this topic