On Thu, Dec 3, 2009 at 3:36 AM, UVL <[email protected]> wrote: > I've seen a lot of extension recently that show on the popup data > fetched from external sources. > > example: > > http://www.chromeextensions.org/alerts-updates/democrat-and-chronicle-live-headlines/ > > Before opening, there is always a delay of some seconds: each time > makes wonder if something is really happening, giving a very bas user > experience. > > Are all these extensions doing something bad, or is this a bug to fix? >
I'd say both. The popup doesn't display until the page finishes loading, so if you the author do something that will dramatically slow down page loading (for example making a synchronous XHR request), then it will slow down the popup showing. If the author knows that this could potentially be slow, it's up to them to make it asynchronous and to make the popup UI able to handle data loading after the fact. On the other hand, from an end-user perspective, the extension system should show the popup more quickly anyway, to give some feedback to the user, even when the popup is slow. We have an outstanding bug on this, but it didn't make the cut for our initial release: crbug.com/24467 Erik p.s. One reason why more people may be burned by this than we expected is because of some webkit behavior where if you do an async XHR during a page's onload event, then it will actually be executed synchronously. > > -- > > You received this message because you are subscribed to the Google Groups > "Chromium-extensions" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<chromium-extensions%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/chromium-extensions?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.
