chromium/chrome/test/data/extensions/api_test/webrequest/xhr/a.js

// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

function sendXHR() {
  var req = new XMLHttpRequest();
  req.open("GET", "data.json", true);
  req.send(null);
}

window.onload = function() {
  sendXHR();
};