Jump to content

Single Page Call using Asnyc Javascript tags


motowebmaster

Recommended Posts

Hello,

It doesn't appear see that Single Page Call hasn't progressed to the point of utilizing it with the async tag, but am willing to fatten-up my javascript a bit in order to improve response time.

My single-page call code is simple. I set my variable names with the zone numbers, and then redefine a couple variables if the width is wider than two particular points. Then run the Revive Adserver SPC script, and display my variables within OA_SHOW in three places.

The benefit is that I'm doing only one media query per page, and displaying all of proper the ad zones for that page.

I'd like to think that sticking with one media query per page is a best practice, and the users could handle a bit more character download in return for a potentially faster experience using the Revive Adserver async tag.

Any thoughts?

 

Link to comment
Share on other sites

The new asynchronous tags in Revive Adserver have been designed so that when you put 2 or more of them on a single page, they will execute a single bundled request to the ad server. That means you have the advantage of single page call without the disadvantage of a potentially blocking javascript in the head of the page.

So in short, async tags already do what you proposed. 

Link to comment
Share on other sites

Instead of using:

OA_Show(zoneid)

I currently use:

OA_Show(variable)

I assign a variable to each of my five zone ids, then define a couple OA_Show variables, and do a window/width media query. Initially the default is ad sizes accommodate mobile phones. If the width is larger than either 500px or 800px I change a couple of the OA_Show variables to switch to larger ad formats. It is essentially a simplistic way to support my site's responsive layout design.

The data-revive-zoneid appears to be the only unique value in any async tag. I guess that is what needs to change dynamically.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...