lighthouse-plugin-publisher-ads/audits/idle-network-times.js
/**
 * Checks the cause of the idle period.
 * @param {IdlePeriod} idlePeriod
 * @param {LH.Artifacts.TaskNode[]} mainThreadTasks
 * @param {LH.TraceEvent[]} timerEvents
 * @param {LH.Artifacts.NavigationTraceTimes} timings
 * @param {LH.Artifacts.TagBlockingFirstPaint[]} blockingTags
 * @param {number} pageStartTime
 */
Checks the cause of the idle period.
Checks the cause of the idle period .
function determineCause(
  idlePeriod, mainThreadTasks, timerEvents, timings, blockingTags,
  pageStartTime) {
  checkIfTaskIsBlocking(idlePeriod, mainThreadTasks, timerEvents) ||
      checkIfTagIsBlocking(idlePeriod, blockingTags, pageStartTime) ||
      checkIfLoadIsBlocking(idlePeriod, timings);
}
function determineCause ( idlePeriod , mainThreadTasks , timerEvents , timings , blockingTags , pageStartTime ) { checkIfTaskIsBlocking ( idlePeriod , mainThreadTasks , timerEvents ) || checkIfTagIsBlocking ( idlePeriod , blockingTags , pageStartTime ) || checkIfLoadIsBlocking ( idlePeriod , timings ) ; }
Checks the cause of the idle period.
Checks the cause of the idle period .