Jump to content

include 'test.php'


robert_gsfame

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.