Render Flow - Responsive navbar collapse
Load HTML with navbar structure
Parse CSS including Bootstrap styles
Detect viewport width
Apply responsive CSS rules
If viewport small: hide navbar links, show toggle button
User clicks toggle button
JavaScript toggles visibility of navbar links
Repaint and composite updated layout
The browser reads the navbar HTML and Bootstrap CSS, then checks screen size. On small screens, it hides the links and shows a toggle button. When clicked, JavaScript shows or hides the links, updating the layout.