Challenge - 5 Problems
Bootstrap Performance Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediateWhy use Bootstrap's CDN for performance?
Which of the following is the main performance benefit of using Bootstrap's CDN instead of hosting the files locally?
Attempts:
2 left
💡 Hint
Think about how CDNs work worldwide to deliver files quickly.
✗ Incorrect
Using a CDN means files are served from servers close to the user, reducing load time and server stress.
📝 Syntax
intermediateIdentify the correct way to defer Bootstrap JavaScript for faster page load
Which option correctly defers loading Bootstrap's JavaScript to improve page performance?
Bootsrap
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" defer></script>Attempts:
2 left
💡 Hint
Defer attribute delays script execution until after HTML parsing.
✗ Incorrect
The defer attribute delays script execution until the HTML is fully parsed, improving load speed.
❓ selector
advancedWhich CSS selector reduces repaint and improves Bootstrap performance?
Given a Bootstrap page, which CSS selector is most efficient to style all buttons without causing excessive repaints?
Attempts:
2 left
💡 Hint
Choose the selector that targets all Bootstrap buttons with minimal overhead.
✗ Incorrect
The .btn class targets all Bootstrap buttons efficiently without affecting unrelated elements.
❓ layout
advancedHow to optimize Bootstrap grid layout for mobile performance?
Which approach best improves performance and responsiveness on mobile devices using Bootstrap grid?
Attempts:
2 left
💡 Hint
Bootstrap's grid breakpoints help load styles only when needed for screen size.
✗ Incorrect
Breakpoint-specific classes load appropriate styles for each device, improving performance and layout.
❓ accessibility
expertWhich Bootstrap practice improves accessibility and performance together?
Which option correctly uses Bootstrap to improve both accessibility and page load performance?
Attempts:
2 left
💡 Hint
Think about how to help screen readers and reduce initial load time.
✗ Incorrect
Providing alt text helps screen readers, and lazy loading images delays loading offscreen images, improving performance.
