Skipping seemingly redundant tags page scrolling logic that causes jittering in Firefox. Added hash exclude property to umami script attributes.
This commit is contained in:
parent
79eacee3f0
commit
e05ca80f7c
|
|
@ -151,11 +151,13 @@ function calculateActiveCategory() {
|
||||||
|
|
||||||
activeCategory.value = newCategory;
|
activeCategory.value = newCategory;
|
||||||
|
|
||||||
|
/* this understandably causes jittering in Firefox, why the need to scroll into the category we're already in?
|
||||||
const activeLink = document.querySelector(`a[href="#${activeCategory.value}"]`);
|
const activeLink = document.querySelector(`a[href="#${activeCategory.value}"]`);
|
||||||
|
|
||||||
activeLink.scrollIntoView({
|
activeLink.scrollIntoView({
|
||||||
inline: 'center',
|
inline: 'center',
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
navigate(`#${activeCategory.value}`, null, { replace: true });
|
navigate(`#${activeCategory.value}`, null, { replace: true });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ async function onRenderHtml(pageContext) {
|
||||||
|
|
||||||
<meta name="description" content="Keep track of new porn releases and re-discover classics from your favorite porn stars and sites" />
|
<meta name="description" content="Keep track of new porn releases and re-discover classics from your favorite porn stars and sites" />
|
||||||
|
|
||||||
${config.analytics.enabled ? dangerouslySkipEscape(`<script src="${config.analytics.address}" data-website-id="${config.analytics.siteId}" async></script>`) : ''}
|
${config.analytics.enabled ? dangerouslySkipEscape(`<script src="${config.analytics.address}" data-website-id="${config.analytics.siteId}" data-exclude-hash="true" async></script>`) : ''}
|
||||||
|
|
||||||
<title>${title}</title>
|
<title>${title}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue