Skip to content
Snippets Groups Projects

Resolve "Specific Async Script Loading by using a Page Variable"

Compare and Show latest version
1374 files
+ 9278
4474
Compare changes
  • Side-by-side
  • Inline
Files
1374
@@ -30,16 +30,14 @@ $(() => {
}
});
setTimeout(() => {
// If we're accessing a permalink, ensure it is not inside a
// closed js-toggle-container!
const hash = window.gl.utils.getLocationHash();
const anchor = hash && document.getElementById(hash);
const container = anchor && $(anchor).closest('.js-toggle-container');
// If we're accessing a permalink, ensure it is not inside a
// closed js-toggle-container!
const hash = window.gl.utils.getLocationHash();
const anchor = hash && document.getElementById(hash);
const container = anchor && $(anchor).closest('.js-toggle-container');
if (container) {
toggleContainer(container, true);
anchor.scrollIntoView();
}
}, 0);
if (container) {
toggleContainer(container, true);
anchor.scrollIntoView();
}
});
Loading