ExamVeda
Login
Home
81
What is the inital step to set up a CSS Lazy Loading?
Discuss
Answer & Solution
Answer: Option A
Solution:
The CSS Lazy Loading is begun with fetching the JavaScript and the CSS files.
82
What is the purpose of holding whatever tag you create in the attribute type?
Discuss
Answer & Solution
Answer: Option B
Solution:
A variable is created to hold whatever taag you create, and then branch the logic based on the value of type, which identifies it’s for JavaScript or for CSS.
83
What does the appendChild() method perform?
Discuss
Answer & Solution
Answer: Option C
Solution:
The appendChild() method appends a node as the last child of a node.
84
What should be the value of the type attribute of a variable if the type of file is CSS?
Discuss
Answer & Solution
Answer: Option C
Solution:
Since the type of file is CSS, the type attribute should hold the value text/css.
85
How to lazy load images?
Discuss
Answer & Solution
Answer: Option B
Solution:
The way we would lazy load images would be to alter the HTML of the page to remove the contents of the src attribute of each image. We could just move the contents of the src attribute to an attribute in the image tag of our own design, maybe the rel attribute.
86
What does the rel attribute of a variable have when the type of file is CSS?
Discuss
Answer & Solution
Answer: Option B
Solution:
The rel attribute must hold the value rel = ‘stylesheet’.
87
What is the parameter of the method getElementsbyTagName() if we need to get an image?
Discuss
Answer & Solution
Answer: Option C
Solution:
The method must look like getElementsbyTageName(“img”) if we need to get an image.
88
How do we stop blocking of loading and executing the perfLogger, a logging type data?
Discuss
Answer & Solution
Answer: Option A
Solution:
By inlining the perfLogger, we no longer block the loading and executing of it.