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:
- the page loads original html select element (which of course looks crap)
- the bootstrap-select plugin js runs
- 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
Post a Comment