Render Flow - Dropdown button basics
Load HTML with button and dropdown markup
Parse Bootstrap CSS and JS
Initialize dropdown JS behavior
Render button visible
Dropdown menu hidden by default
On button click: toggle dropdown visibility
Repaint dropdown menu visible or hidden
The browser reads the HTML for the button and dropdown menu, applies Bootstrap styles and JavaScript to handle the dropdown toggle, then renders the button visible and the dropdown menu hidden. When the button is clicked, JavaScript toggles the dropdown menu's visibility, causing the browser to repaint the menu.