updated example with resize event
setting ready flag
Merge branch 'gh-pages'