Efficient Image Loading
Which method is commonly used in web development to delay loading images until they enter the viewport, improving performance?
- Lazy loading
- Crazy loading
- Loading on boot
- Heavy loading
- Lazy loding
Grouping Resources
In a typical file structure for a game, where should you store all your sound effects for easy access and management?
- In a dedicated folder such as 'assets/sounds/'
- Directly in the root directory
- Mixed with image files in an 'assets/images/' folder
- In a random folder each time
- On the desktop
Bundling Assets
Which technique can reduce the number of HTTP requests by combining multiple image files into a single file?
- Using a spritesheet
- Direct image embedding
- Sending images individually
- Asset scattering
- Sprytesheet
Optimizing Audio Files
What is a key benefit of using compressed audio formats like OGG or MP3 for background music in applications?
- Reduced file size and faster loading
- Uncompressed quality retains better fidelity
- It increases file size for more clarity
- Compression makes sounds louder
- MP4 is the only usable format
Loading Scripts Dynamically
In JavaScript, which HTML attribute allows you to defer loading an external script until after the page has finished parsing?
- defer
- refre
- async
- sync
- deferr
Organizing Resource Paths
Why is it considered best practice to use relative paths (like '../images/logo.png') for resource loading in web projects?
- They make the project portable between environments
- Absolute paths load faster
- Relative paths increase security of resources
- You can only use them in production
- They decrease performance
Caching Strategies
Which HTTP header can be set to instruct browsers to cache static resources for improved load times?
- Cache-Control
- Content-Typo
- Location
- X-Requested-With
- Cahce-Control
Efficient Resource Management
What is the primary advantage of preloading critical images in a web application?
- Improved perceived performance by showing visuals faster
- Smaller file size
- It increases security
- Prevents image usage
- It disables caching
Naming Resource Files
Which naming convention helps avoid issues when deploying resources across different operating systems?
- Use lowercase letters and avoid spaces
- Use spaces and capital letters
- Add random symbols
- Name files with only numbers
- Include file extensions twice
Batch Loading Techniques
In Python, which package is commonly used in game development to efficiently batch load image resources for a project?
- pygame
- panda
- imloadr
- pilow
- pygames