C2040-911 Free Dumps Study Materials
Question 7: Quinn is creating a module that adds a customized Dojo lightbox for a disclaimer to overlay the
screen as soon as the page loads using dojo.addOnLoad. She has already created myLightBox.css and
intends to write the JavaScript event triggering the lightbox inline. What must Quinn do to ensure she
gets the desired functionality at minimal performance cost?
A. Quinn should add all this code right after the theme's <head> tag to ensure the functionality
happens as soon as the body markup is loading.
B. Quinn must add the <link> tag pointing to myLightBox.css into the <co:head> block. The JavaScript
can be added anywhere therein as long asthe page uses the nondeferred profile and the event is
added to the event handler
C. Quinn must create a CSS sub-contribution type in her module pointing to myLightBox.css. The
JavaScript can be added anywhere therein aslong as the page uses the default deferred profile and
the event is added to the event handler.
D. Quinn should really write all CSS and JavaScript inline for performance reasons so secondary
requests to the server are never made.
Correct Answer: C