
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. We're using the collapse plugin to do this. (Btw, this is currently visible in the docs.) Why this happens. Shrinking the viewport back to the narrow size still shows the un-collapsed navbar contents. The cookie is used to store the user consent for the cookies in the category "Performance". Starting with a narrow viewport, one with the collapsed navbar contents, open the menu, then resize to full-width with all navbar contents visible. This cookie is set by GDPR Cookie Consent plugin.

The cookie is used to store the user consent for the cookies in the category "Other. The cookies is used to store the user consent for the cookies in the category "Necessary". The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". The cookie is used to store the user consent for the cookies in the category "Analytics".

These cookies ensure basic functionalities and security features of the website, anonymously. Necessary cookies are absolutely essential for the website to function properly. We also need to test the css class on initial load of the page. Suppose the “sampleClass” class has a float:left rule before the media query, and a float:none rule after, on window resize I check for the change in that rule. This way, regardless of the how the browser treats the scrollbar, the media query will fire at the same time. Rather than the measuring the screen width on resize of the window, I check for a css rule that is changed by the media query. The solution: use jQuery to test for a changed CSS property, rather than the browser width
BOOTSTRAP NAVBAR OPEN ON RESIZE CODE
Here is a code example showing the difference between the jQuery window width and the media query width measurement. This inconsistency causes a small difference between browsers in the actual window width when a media query fires, which in turn causes media query and jQuery width measurements to not match in some popular browsers: Firefox, IE, and Opera.

The navbar is one of the prominent features of Bootstrap sites. It is a front-end framework used to create modern websites and web apps. Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive websites. Roger Johansson recently wrote up a great article documenting the inconsistent treatment of vertical scrollbars in media query widths. Under these strict confines, minimalism makes a rational argument. When viewing the site in Firefox, I noticed a small difference in the width at which my media query and javascript were firing.
