Need for viewsEnabled in at.js configuration | Community
Skip to main content
jgrubbs
Level 3
September 2, 2021
Question

Need for viewsEnabled in at.js configuration

  • September 2, 2021
  • 0 replies
  • 728 views

Hello all, hopefully a simple question to answer. We've been using at.js 2.x for a couple years, and the default configuration passed to init() includes "viewsEnabled: true". This generates the initial prefetch, and is something that we do not utilize in our implementation. We don't use a hybrid model and instead rely solely on Target to make the decision on what tests to show a visitor. We use the getOffer() method to initiated the request, and then applyOffer() accordingly. This results in 2 actual server calls to the Target endpoint.

 

Is there a reason to keep "viewsEnabled" as true? Will there be any harm if we deactivate it?

Thanks!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.