[iframely.js] refactor size conditions