less - Loading a page correctly with Masonry + LessCSS -
i had problem masonry plugin causing function when viewport being changed, meaning masonry boxes invisible until resize browser window. after boxes not olny visible masonry works expected.
i resolved problem using regular css again styling, , not less css anymore had intended.
but able use both? (it doesn't seem it's simple 'reorder how scripts being loaded' kind of thing)
funnily when use jsfiddle , implement less css there, there no problem. maybe can tell me jsfiddle fix issue?
https://jsfiddle.net/rcygo5fy/
code
"solution": since solution hassle code , compiling css on every load heavy, client-side, best solution leave less out of end result , use development less-to-css-rendered file actual usage. css masonry timing problem goes away.
Comments
Post a Comment