Search code examples
jqueryajaxpageviews

Do AJAX requests effect page views?


Because webfont distributors base their licensing off of page views, would AJAX requests (.load()) have an effect?

Example:

$('#read').load('index.php #read'); // update #read div
$('#watch').load('index.php #watch'); // update #watch div

Solution

  • Generally speaking, no.

    An ajax page request gets a string of information (usually html/xml/json). For the purposes of the webfont service, it is tracking requests for the webfont itself. Whenever the browser processes the tag with the request to the webfont itself, then that is the request that is logged.

    Unless, of course, if the ajax request is specifically for the webfont, or an injection of a element that requests the webfont. Then yes, it would be a page view for that font.