List of questions
Related questions
Question 179 - Certified JavaScript Developer I discussion
A developer at Universal Containers is creating their new landing page based on HTML, CSS, and JavaScript. The website includes multiple external resources that are loaded when the page is opened.
To ensure that visitors have a good experience, a script named personalizeWebsiteContent needs to be executed when the webpage Is loaded and there Is no need to wait for the resources to be available.
Which statement should be used to call personalizeWebsiteContent based on the above business requirement?
A.
windows,addEventListener('load', personalizeWebsiteContent);
B.
windows,addEventListener('DOMContent Loaded ', personalizeWebsiteContent);
C.
windows,addEventListener('onload', personalizeWebsiteContent);
D.
windows,addEventListener('onDOMCContentLoaded', personalizeWebsiteContent);
Your answer:
0 comments
Sorted by
Leave a comment first