Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ <h4 data-i18n="footer.sections.contact">Contact</h4>
navLinks.classList.toggle('active');
}
</script>
<script src="locales.js"></script>
<script src="theme.js"></script>
Comment on lines +291 to +292
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These script tags are duplicates. Both locales.js and theme.js are already included earlier in the HTML at lines 251-252. Loading the same scripts twice can cause issues such as duplicate event listeners, reinitialization of objects, and increased page load time. Remove these duplicate script tags.

Suggested change
<script src="locales.js"></script>
<script src="theme.js"></script>

Copilot uses AI. Check for mistakes.
Comment on lines +291 to +292

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid loading locale/theme scripts twice

These two tags add a second load of locales.js and theme.js, but both scripts are already included earlier in index.html. Because those files register DOMContentLoaded handlers and create UI elements (e.g., cookie banner, theme toggle) and listeners, loading them twice causes duplicate initialization on every page load (double banners/buttons, duplicated handlers). Remove the duplicate includes or move the original ones instead of adding a second pair.

Useful? React with 👍 / 👎.

<script src="chatbot.js"></script>
</body>
</html>