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

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -