javascript - Bootstrap-select plugin: how to avoid flickering -


the bootsrap-select plugin amazing (http://silviomoreto.github.io/bootstrap-select/). provides extremely easy way of creating gorgeous select menus in bootstrap. 1 problem i've encountered it, however, "flickering" on page load. mean straight forward:

  1. the page loads original html select element (which of course looks crap)
  2. the bootstrap-select plugin js runs
  3. at noticeable time after page loads original html select element converted nice bootstrap-select element js in step (2).

so, user first sees html select element , sees switch pretty bootstrap-select item, "flickering".

has found solution problem?

to show blank until bootstrap-select loaded, add css.

select {    visibility: hidden; } 

Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -