Optimization script blocks to hover when resize the iframe