in Education by
How to lazy load images? (a) Remove the rel attribute (b) Remove the src attribute (c) Make rel = src (d) Make src = rel The question was asked during an interview. I would like to ask this question from Lazy Loading in chapter Invocation and Performance Navigation of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Correct answer is (b) Remove the src attribute Best explanation: 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.

Related questions

0 votes
    What is the initial step to set up a CSS Lazy Loading? (a) Fetching data (b) Loading the script ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of lazy loading? (a) Immediate loading is necessary (b) Loading under command (c ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    What is the advantage of the code produced graphics being smaller than the images themselves? (a) Bandwidth ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which HTML element is used to include images? (a) image (b) img (c) src (d) sourcing The ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What is the alternative command used in Node for load()? (a) store() (b) module() (c) log( ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which is the opposite of the load event in JavaScript? (a) dontload (b) postload (c) preload (d) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Which is the alternative to the load event? (a) readychange (b) changestate (c) readystatechange (d) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    How many bits are used for generating random numbers? (a) 32 (b) 64 (c) 48 (d) 8 The ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    How can we delete all files in a directory? (a) Files.delete(path) (b) Files.deleteDir() (c) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    How to copy the file from one location to other? (a) Files.copy(source, target) (b) Path.copy( ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...