= document.querySelector('#img_1');
    const img_2 = document.querySelector('#img_2');

    const img_1_promise = new Promise((resolve, reject) => {
      img_1.onerror = reject;
      img_1.onload = resolve;
    });

    const img_2_promise = new Promise((resolve, reject) => {
      img_2.onerror = reject;
      img_2.onload = resolve;
    });

    Promise.all([img_1_promise, img_2_promise])
      .then(t.step_func_done())
      .catch(t.unreached_func("The images should load successfully"));

    // Kick