Skip to content

Conversation

@yitzhakc
Copy link
Contributor

Summary

  • Removed jQuery dependency from client.jsx
  • Replaced jQuery DOM ready callback $(function() {...}) with document.addEventListener('DOMContentLoaded', ...)
  • Replaced $(window).width() with window.innerWidth

Context

Resolves technical cleanup issue SC-998: "Why is client.jsx main method being called through jQuery?"

The entire client.jsx was wrapped in a jQuery DOM ready callback, which was unnecessary overhead. This change modernizes the code to use vanilla JavaScript equivalents.

Test plan

  • Build completed successfully with npm run build
  • Manual testing: verify the app loads correctly in browser
  • Manual testing: verify static pages render header correctly (uses window.innerWidth logic)

🤖 Generated with Claude Code

Removes jQuery dependency from client.jsx by replacing:
- jQuery DOM ready callback with DOMContentLoaded event listener
- $(window).width() with window.innerWidth

This modernizes the code and reduces the dependency footprint.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@mergify
Copy link

mergify bot commented Jan 19, 2026

🧪 CI Insights

Here's what we observed from your CI run for 7b1e62e.

🟢 All jobs passed!

But CI Insights is watching 👀

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modernizes the client initialization code by removing the jQuery dependency and replacing it with vanilla JavaScript equivalents. This is part of a technical cleanup effort to reduce unnecessary dependencies in the application.

Changes:

  • Removed jQuery import from client.jsx since it's no longer directly used in this file
  • Replaced jQuery DOM ready callback with native DOMContentLoaded event listener
  • Replaced jQuery's $(window).width() with native window.innerWidth for viewport width detection

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant