Class: TRMNLP::Lint::Checks::WaitsForDomLoad

Inherits:
TRMNLP::Lint::Check show all
Defined in:
lib/trmnlp/lint/checks/waits_for_dom_load.rb

Constant Summary collapse

MESSAGE =
'JavaScript should listen for the DOMContentLoaded event, ' \
'not window.onload or window.addEventListener("load")'
LEARN_MORE =
'https://help.trmnl.com/en/articles/9510536-private-plugins#h_db7030f8b8'
FORBIDDEN =
['window.onload', 'window.addeventlistener("load")',
"window.addeventlistener('load')"].freeze

Method Summary

Methods inherited from TRMNLP::Lint::Check

#initialize, #issues

Constructor Details

This class inherits a constructor from TRMNLP::Lint::Check