Breadcrumb outputs JavaScript? #258
-
Hi. I included Breadcrumb on my page an noticed that it outpus some JavaScript to the generated HTML. I wonder why this happens since I expected the Breadcrum to generate just simple HTML (and CSS) without any JavaScript. |
Beta Was this translation helpful? Give feedback.
Answered by
felix-berlin
May 18, 2024
Replies: 1 comment
-
Hi @Jarzka, you're right, astro-breadcrumbs ships a small JS file. This is used to dynamically truncate the crumbs on smaller screens. In the next Major Version, this Script will be only loaded on optin or optout. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
felix-berlin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Jarzka, you're right, astro-breadcrumbs ships a small JS file. This is used to dynamically truncate the crumbs on smaller screens.
In the next Major Version, this Script will be only loaded on optin or optout.