Class: TRMNLP::Lint::Checks::WaitsForDomLoad
- Inherits:
-
TRMNLP::Lint::Check
- Object
- TRMNLP::Lint::Check
- TRMNLP::Lint::Checks::WaitsForDomLoad
- 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
Constructor Details
This class inherits a constructor from TRMNLP::Lint::Check