[Phpmyadmin-devel] Query statistics chart slows down page load

Piotr Przybylski piotr.prz at gmail.com
Wed Aug 10 13:47:27 CEST 2011


2011/8/8 Tyron Madlener <tyronx at gmail.com>:
> On Thu, Aug 4, 2011 at 5:10 PM, Piotr Przybylski <piotr.prz at gmail.com> wrote:
>> Hi,
>>
>> Query statistics tab greatly increases page load time in my browser -
>> I get about 5s delay before tabs are created which is IMO too slow.
>> Removing "<?php printQueryStatistics(); ?>" from the code decreases it
>> to less than a second and causes page load event to be fired about 10
>> seconds earlier (at 2nd second instead of 12th).
>>
>> I think this should be fixed, eg. by initializing chart only when user
>> actually navigates to it.
>
> I've now merged rgbcolor.js into canvg.js and set up the status page
> to load the monitor code on demand (when the tab is clicked).
> For me on localhost the page now loads twice as fast (unless you had
> the monitor tab active last load, since it remembers the last active
> tab)

Thanks. I will check when I get back home, on my current poor EDGE
connection downloading anything takes too much time.

-- 
Piotr Przybylski




More information about the Developers mailing list