Copilot commented on code in PR #437:
URL: 
https://github.com/apache/incubator-hugegraph-doc/pull/437#discussion_r2606114897


##########
themes/docsy/layouts/partials/hooks/head-end.html:
##########
@@ -3,7 +3,7 @@
 {{ end }}
 
 {{ if .Site.Params.mermaid.enable }}
-<script 
src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js";></script>
+<script src="{{ "js/mermaid.min.js" | relURL }}"></script>

Review Comment:
   This change introduces duplicate loading of `mermaid.min.js`. The Mermaid 
library is already loaded in `themes/docsy/layouts/partials/scripts.html` at 
line 6. Loading the same library twice will cause unnecessary bandwidth usage 
and may lead to initialization conflicts.
   
   Consider removing this script tag since Mermaid is already loaded in 
`scripts.html`, or remove the one in `scripts.html` if this location is 
preferred.
   ```suggestion
   
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to