This topic is locked

Improving Load Time

11/13/2008 3:35:15 PM
PHPRunner General questions
C
Christopher author

I have done several php runner projects, and the page load is consistently slower than I would like. One of the hangups is that the visual page appears to be the last item to load.
I think the template call is the very last item in the php file, can I safely move this higher and where is the highest point it could be?
Also, I have pages in 5.0 loading jquery, ajaxsuggest, flybody that I may not be using on a particular page. How do I eliminate those loads?
Thanks.

J
Jane 11/14/2008

Hi,
you can remove all unnecessary code on the Visual Editor tab manually.

C
Christopher author 11/14/2008

Hi Jane,
That actually doesn't answer my question at all...I am talking about optimization beyond the visual editor.
The last call is in a file, say users_add.php is the template. Can I load that sooner? Are there dependencies that need to happen first? Etc.
I believe all kinds of js is being loaded by $head - that is not available in the visual editor to configure. I don't want to load five js files if I am not using them.

Hi,

you can remove all unnecessary code on the Visual Editor tab manually.

Sergey Kornilov admin 11/15/2008

8ballshooter,
include files are stored in $includes variable. You can inspect it's content in BeforeDisplay event and modify it accordingly.
You may find that javascript files has nothing to do with this issue. First, PHPRunner eliminates most javascript files you don't need in your project. Second, javascript files are usually cached by web browser.
You may want to post your project to Demo Account and contact support directly.

M
mmponline 11/17/2008

I also experience that the database takes some time to load on clicking the link to open the database. Thsi is similar whether the page is loaded with it's own header or running in an inline frame. Somehow there must be some tricks to get the database loading quicker on accessing it. I'm sure this was not the case before V4 and I was hoping to see it better in V5, but it seems to be the same.
In some cases, it takes uo to about 10 seconds before a page displays on an ADSL connection.
Examples:

http://travelplanner-sa.com/tpdb/thingstodo_list.php
http://www.suzukinelspruit.co.za/suzukiusedcars.htm

S
swanside 11/17/2008

I also experience that the database takes some time to load on clicking the link to open the database. Thsi is similar whether the page is loaded with it's own header or running in an inline frame. Somehow there must be some tricks to get the database loading quicker on accessing it. I'm sure this was not the case before V4 and I was hoping to see it better in V5, but it seems to be the same.

In some cases, it takes uo to about 10 seconds before a page displays on an ADSL connection.
Examples:

http://travelplanner-sa.com/tpdb/thingstodo_list.php
http://www.suzukinelspruit.co.za/suzukiusedcars.htm


This is way off topic, but are those web sites yours? I love the South Africa ones, We went to Bazaruto about two years ago, it was fantastic.

Sergey Kornilov admin 11/17/2008

Stephan,
I'm afraid this has nothing to do with the web application itself. It loads fairly quick, in 1-2 seconds till the full page is displayed.
You may want to measure PHP script execution time to see where the bottleneck is.
At the very beginning of the file:

$mtime = microtime();

$mtime = explode(" ",$mtime);

$mtime = $mtime[1] + $mtime[0];

$starttime = $mtime;


At the very end of the file:

$mtime = microtime();

$mtime = explode(" ",$mtime);

$mtime = $mtime[1] + $mtime[0];

$endtime = $mtime;

$totaltime = ($endtime - $starttime);

echo "This page was created in ".$totaltime." seconds";