Comments (3)
This happens because the plugin uses JavaScript on DOM ready to init the styles which are used to hide the nav. You can get around this by using either Modernizr, or by adding a bit of JS to "head". Like this:
var doc = document, docEl = doc.documentElement;
docEl.className = docEl.className.replace(/(^|\s)no-js(\s|$)/, " js ");
basically, (if you use the JS I just pasted) this means that you also have to add "no-js" class to html by default, which'll then get replaces by "js" if and when it is available.
There's also a third option: just remove the ".js" from the CSS :)
from responsive-nav.js.
You may have to hide / unhide certain elements by default if the js is
taking over on load. This can happen with any JS for layouts.
On Sat, Apr 13, 2013 at 3:37 PM, benjaminnathan [email protected]:
I'm experiencing a slight flash of the fully expanded nav when loading the
page. It hides very quickly, but it's still quite noticeable. Is there
anything I can do to the CSS to prevent this? Have I made an implementation
mistake?
I really appreciate the plugin, btw. Thank you tons.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/24
.
Alexander D. Conroy
(786) 315-9653 - Google Voice
(305) 767-1602 - Skype
from responsive-nav.js.
Thanks for the explanation and help! I have little JavaScript knowledge, so this is very helpful. I've removed the .js from the CSS, which seems to do the trick! :)
(BTW, what would you consider the best option? Are there any differences in either options?)
from responsive-nav.js.
Related Issues (20)
- Navigation height with nested <ul> HOT 2
- responsiveNav is not defined HOT 2
- left nav cascaded
- Nav is buged
- closeOnNavClick variable changes location
- Multi-Level Responsive Nav
- Just a navigation. Clicking on navigation doesn't slide to anchor points?
- Checking if class exists
- Add opacity onScroll
- Support for Multi-level Nav HOT 1
- Appears from left or right
- Change hamburger to be an image so doesnt flash on page load
- Multilevel not opening on Android Chrome
- Using different customToggle when js-nav-active
- Plugin installation failed. (No valid plugins were found.)
- Nav not scrollable on dropdowns (where submenus available)
- Not working
- Unable to preventDefault inside passive event listener invocation. HOT 1
- How to initialize with a toggle?
- Explanation for installation process
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from responsive-nav.js.