arkanis
12-15-2001, 12:57 AM
which would be a bigger hog of bandwidth
using javascript functions to insert stuff into the page like for example if i have this
<script language="javascript">
function hello()
{
It is a Sunn
}
</script>
<body>
<script language="javascript"
hello;
</script>
y Day
</body>
it would print "It is a sunny Day"....
using it like this i could use the same bit of coding multiple times on the same page
or using the normal php server side includes to do the work
i dont' know much about how things affect servers or bandwidth or anything like that so i want to find out now before i change all my pages to the javascript method (which is ALOT easier to manage....
errrr what I wanna find out is, if the javascript method would use up more bandwidth or lag the server more than server side includes would
i havn't seen this done on any sites so there has to be some reason
using javascript functions to insert stuff into the page like for example if i have this
<script language="javascript">
function hello()
{
It is a Sunn
}
</script>
<body>
<script language="javascript"
hello;
</script>
y Day
</body>
it would print "It is a sunny Day"....
using it like this i could use the same bit of coding multiple times on the same page
or using the normal php server side includes to do the work
i dont' know much about how things affect servers or bandwidth or anything like that so i want to find out now before i change all my pages to the javascript method (which is ALOT easier to manage....
errrr what I wanna find out is, if the javascript method would use up more bandwidth or lag the server more than server side includes would
i havn't seen this done on any sites so there has to be some reason