MyBB Community Forums

Full Version: Advertisements / Content Loading
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Basically, over at my forum, we've got some advertisements from both Bidvertiser and Google AdSense, which has quite an effect on the page load times. The site is ran from my dedicated server (only site on the server) and the site runs extremely fast without the ads.

Is it possible to delay the advertisements, by this I mean, wait for the forum to load, then once that's done, then load the advertisement? Because at the moment, ads are slowing down the site quite a bit.

Not using an advertisement plugin, just inserted the code provided by Google and Bidvertiser.

Forum: http://cashforposts.info

Any ideas would be appreciated.

Cheers.
Could use a frame.
How'd I do that?
http://www.w3schools.com/tags/tag_iframe.asp

Make HTML pages with the ad codes and iframe them.
this might help : external link : Delay loading advertisements

edit: not sure about iframe method ..
Frames are invalid and a horrible way to solve this problem. Do not use W3Schools as a resource. See W3Fools.com for more information.

How exactly are the advertisements put into your forum? JavaScript in the <head> tag can delay loading times significantly. Put the ad code right before the closing </body> tag.
(2011-09-19, 05:03 PM)Steven Wrote: [ -> ]Frames are invalid and a horrible way to solve this problem. Do not use W3Schools as a resource. See W3Fools.com for more information.

How exactly are the advertisements put into your forum? JavaScript in the <head> tag can delay loading times significantly. Put the ad code right before the closing </body> tag.

Here's the template where Bidvertiser ads are located, AdSense ads are in the footer template.

<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
<div align="right">
		<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=412113&bid=1023638" type="text/javascript"></SCRIPT>
<noscript><a href="http://www.bidvertiser.com/bdv/BidVertiser/bdv_publisher_toolbar.dbm">custom toolbar</a></noscript>
</div>
			<div class="menu">
				<ul>
<center>
<li><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['imgdir']}/toplinks/home.png" alt="" title="" />Home</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.png" alt="" title="" />Search</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.png" alt="" title="" />Members</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.png" alt="" title="" />Help</a></li>
</center>
				</ul>
			</div>
			<hr class="hidden" />
			<div id="panel">
				{$welcomeblock}
			</div>
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			{$pending_joinrequests}
			<navigation>
			<br />