1
    2
    3
    4
    5
    6
    7
    8

content / test / data / back_forward_cache / dom_content_loaded_promise.js [blame]

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

// Set up a promise that will be resolve when DOMContentLoaded is fired.
var domContentLoaded = new Promise(resolve => {
  document.addEventListener("DOMContentLoaded", () => resolve(42));
});