itube-specs 0.0.851 → 0.0.852
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
:top-chips="topChips"
|
|
38
38
|
:playlist-id="playlistId"
|
|
39
39
|
:playlist="playlist"
|
|
40
|
+
:hydrate-on-visible="HYDRATE_MARGIN"
|
|
40
41
|
class="grid-videos__card"
|
|
41
42
|
loading="lazy"
|
|
42
|
-
hydrate-on-visible
|
|
43
43
|
/>
|
|
44
44
|
<slot name="grid-end"/>
|
|
45
45
|
</div>
|
|
@@ -49,6 +49,8 @@
|
|
|
49
49
|
import type { IVideoCard } from '../../types';
|
|
50
50
|
|
|
51
51
|
const IDLE_COUNT = 4;
|
|
52
|
+
/** Запас гидрации до появления карточки на экране: без него обработчики превью не успевают появиться к тапу. */
|
|
53
|
+
const HYDRATE_MARGIN = { rootMargin: '300px' };
|
|
52
54
|
|
|
53
55
|
const props = defineProps<{
|
|
54
56
|
items: Array<IVideoCard>
|
|
@@ -176,7 +176,7 @@ function linkTo(value: string | number) {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
watch(() => route.query['page'], () => {
|
|
179
|
-
document.documentElement.querySelector('#anchor')?.scrollIntoView({ behavior: '
|
|
179
|
+
document.documentElement.querySelector('#anchor')?.scrollIntoView({ behavior: 'instant' });
|
|
180
180
|
});
|
|
181
181
|
|
|
182
182
|
// canonical/hreflang выпускает app.vue — отсюда уходит только факт, который знает лишь пагинация
|