Website Design Website Performance and SEO 1 — Questions and Answers
Question 1: What does 'page load time' measure in web performance?
- How long the server takes to process a request
- The total time from request to when all page resources are fully loaded (Correct answer)
- The time it takes a user to read the full page
- The duration of CSS animations on a page
Correct answer: The total time from request to when all page resources are fully loaded
Page load time measures the total time from when a browser requests a page to when all its resources are completely loaded and rendered.
Question 2: What is image optimization in web performance?
- Choosing images with higher resolution
- Reducing image file size while maintaining acceptable visual quality (Correct answer)
- Adding SEO alt text to images
- Converting all images to PNG format
Correct answer: Reducing image file size while maintaining acceptable visual quality
Image optimization reduces file sizes through compression, format selection, and resizing to speed up page load times.
Question 3: What is 'lazy loading' in web design?
- A technique that delays page rendering until all scripts load
- Deferring the loading of non-critical resources until they're needed (Correct answer)
- A CSS technique that loads styles progressively
- A method to load pages on slow servers
Correct answer: Deferring the loading of non-critical resources until they're needed
Lazy loading defers the loading of images and other resources until they're about to enter the viewport, reducing initial page load time.
Question 4: What is a CDN (Content Delivery Network) in web design?
- A CSS debugging network tool
- A distributed server network that delivers web content from locations closest to users (Correct answer)
- A network monitoring dashboard
- A cloud database for storing web content
Correct answer: A distributed server network that delivers web content from locations closest to users
A CDN distributes web assets across global servers so content is delivered from a server geographically close to each user, reducing latency.
Question 5: What is the purpose of browser caching in web performance?
- To store user passwords securely
- To save web resources locally so repeat visits load faster (Correct answer)
- To cache server-side database queries
- To store JavaScript variables between sessions
Correct answer: To save web resources locally so repeat visits load faster
Browser caching stores static assets (CSS, JS, images) locally so on repeat visits, browsers load them from the cache instead of re-downloading.
Question 6: What does 'minification' of CSS and JavaScript do for web performance?
- Converts files to a smaller image format
- Removes whitespace, comments, and unnecessary characters to reduce file size (Correct answer)
- Compresses files using ZIP compression
- Combines all CSS into a single line for readability
Correct answer: Removes whitespace, comments, and unnecessary characters to reduce file size
Minification strips whitespace, comments, and redundant characters from CSS and JS files to reduce their size and improve load speed.
What does 'page load time' measure in web performance?