![]() ![]() | Join Date: Feb 2007 | Posts: 603 | Location: New Delhi, India |
Calling a text file from template
I am thinking of removing ads from the template and placing them in a text file which I would then call from template. I am doing this because I only display ads to guests and I believe this would reduce the size of template for registered members, since call statement would be put inside if statement and would be shorter than code for adsense.
I have two questions regarding this:
A. How do I actually call a text file from temple so that the content of the file i.e. adsense code is included in the template.
B. Will this also reduce template load time for guests i.e. those using internet explorer currently have to wait for the full page to load (including ads) before any thing is displayed, by placing the javascript code in an external file; I think the forums would load first and then ads, would this be the case?
I have two questions regarding this:
A. How do I actually call a text file from temple so that the content of the file i.e. adsense code is included in the template.
B. Will this also reduce template load time for guests i.e. those using internet explorer currently have to wait for the full page to load (including ads) before any thing is displayed, by placing the javascript code in an external file; I think the forums would load first and then ads, would this be the case?
--------------------
India Travel Forum | vBulletin Tips and Tricks | Free Travel Directory | Men's Lifestyle Forum
India Travel Forum | vBulletin Tips and Tricks | Free Travel Directory | Men's Lifestyle Forum











Linear Mode

