Skip to content

Conversation

@simonLeary42
Copy link
Collaborator

@simonLeary42 simonLeary42 commented Dec 29, 2025

  • remove version numbers from NPM-copied files
  • remove checksum from NPM-copied files
  • change ?v=.... to ?cache_bust_increment_me=...
    • this is because it would be misleading to get jquery.min.js?v=1.5.1 when 1.5.1 is not the jquery version but the account portal version

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 refactors script handling to improve clarity and consistency by removing version numbers from NPM-copied filenames, changing the cache-busting query parameter to avoid confusion between library versions and application versions, and consolidating script loading.

  • Removed version numbers from jQuery and CKEditor filenames to avoid confusion with the application version
  • Changed cache-busting parameter from ?v= to ?cache_bust_increment_me= for better semantic clarity
  • Attempted to consolidate script loading by moving modal.js to the footer

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
package.json Updates NPM file copy destinations to remove version numbers from jQuery and CKEditor filenames
resources/templates/header.php Refactors script and CSS loading into loops, removes integrity checks, updates cache-busting parameter, and removes modal.js from early script loading
resources/templates/footer.php Adds modal.js to footer script loading and updates cache-busting parameter

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

@simonLeary42 simonLeary42 marked this pull request as ready for review December 29, 2025 19:26
@simonLeary42 simonLeary42 merged commit 71debb3 into main Dec 29, 2025
3 checks passed
@simonLeary42 simonLeary42 deleted the refactor-scripts branch December 29, 2025 19:26
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.

2 participants