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

Tyron Madlener tyronx at gmail.com
Wed Aug 10 09:58:53 CEST 2011


On Mon, Aug 8, 2011 at 2:11 PM, Tyron Madlener <tyronx at gmail.com> wrote:
> 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)
>

flashcanvas.js is now only included for MSIE below version 9, so that
should also give a bit less loading time.

In the process I also fixed this ugly bug in IE 6-8 creating a
gradient on every single row on a table (someone forgot to clear the
filters for  td.odd and td.even)

>
>>
>> --
>> Regards,
>> Piotr Przybylski
>>
>> ------------------------------------------------------------------------------
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> The must-attend event for mobile developers. Connect with experts.
>> Get tools for creating Super Apps. See the latest technologies.
>> Sessions, hands-on labs, demos & much more. Register early & save!
>> http://p.sf.net/sfu/rim-blackberry-1
>> _______________________________________________
>> Phpmyadmin-devel mailing list
>> Phpmyadmin-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
>>
>




More information about the Developers mailing list