optimized js
if seg.json loaded,then do next.