robert_gsfame Posted May 20, 2010 Share Posted May 20, 2010 when i create this test.php and call it using Include 'test.php'.....will it help me in reducing the time of loading the page similar to external JS thx Link to comment https://forums.phpfreaks.com/topic/202349-include-testphp/ Share on other sites More sharing options...
The Little Guy Posted May 20, 2010 Share Posted May 20, 2010 I pretty certain, that it will not be any faster, if anything it would be slower, but not at all a noticeable amount. Link to comment https://forums.phpfreaks.com/topic/202349-include-testphp/#findComment-1060968 Share on other sites More sharing options...
Daniel0 Posted May 20, 2010 Share Posted May 20, 2010 No, it will not. Link to comment https://forums.phpfreaks.com/topic/202349-include-testphp/#findComment-1060990 Share on other sites More sharing options...
anups Posted May 20, 2010 Share Posted May 20, 2010 whenever you include a external JS, your browser sends an extra request to server in order to fetch JS file. If you are including it with include 'test.php'; surely there will be less number of request to the server, so it wil make webpage to load fast. you can check this performance using yslow, in firefox description is available at http://developer.yahoo.com/performance/rules.html It will help you to Minimize HTTP Requests So it will reduce the time of loading the webpage as compared to external js Link to comment https://forums.phpfreaks.com/topic/202349-include-testphp/#findComment-1060996 Share on other sites More sharing options...
phpchamps Posted May 20, 2010 Share Posted May 20, 2010 No, it will not help you reducing time... "Decosian" here "robert" is not including any external js file what is asking if he include server side php script which means all the server side inclusion will happen on server only output will be sent to the client.... so while rendering on the client side no extra request will be sent to the server. I guess, you misinterpreted the question... its not client side inclusion.. its server side inclusion... Link to comment https://forums.phpfreaks.com/topic/202349-include-testphp/#findComment-1061017 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.