Html renders pages too slowly

on the mobile side, I returned a html page using ajax. The html page contains js,. In this html page, I used the plug-in of swiper to display images in rotation. Now there is a problem. Because swiper is rendered by js, but the rest of the page does not need, there will be a situation. When the page is rendered, everything else is rendered except the part of html, rendered by swiper. Then execute the code, this time will render swiper, this process page will jump, how do you face this problem?

Mar.23,2021

position, set the width and height of the swiper container in advance.

Menu