웹뷰에 출력되는 영역을 먼저 로드하고, 그 외 영역은 출력이 필요할 때까지 지연시키는 방식
<!-- 데이터 출력 필요 영역 감지 -->
<div>
<CrdScoreCmprDtl :crd-score-cmpr="dataCrdScoreCmpr"></CrdScoreCmprDtl>
<v-btn v-intersect.once="onLazyLoad">...</v-btn>
</div>
methods: {
/**
* 웹뷰에서 v-intersect 영역 교차 시, onLazyLoad 함수 호출
* @param {object} entries IntersectionObserverEntry Array
* @param {object} observer IntersectionObserver Array
* @param {boolean} isIntersecting 특정영역교차여부
*/
onLazyLoad(entries, observer, isIntersecting) {
if (isIntersecting) {
this.callCrdScoreCmpr();
}
},
},