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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted May 20, 2010 Share Posted May 20, 2010 No, it will not. Quote Link to comment 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 Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.