Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Performance and Optimization, plus Vietnamese url support & readme languages#100

Open
Keyyard wants to merge 6 commits intoisanchop:mainfrom
Keyyard:main
Open

Performance and Optimization, plus Vietnamese url support & readme languages#100
Keyyard wants to merge 6 commits intoisanchop:mainfrom
Keyyard:main

Conversation

@Keyyard
Copy link
Copy Markdown

@Keyyard Keyyard commented May 7, 2025

Changelog

[0.5.7] - 2025-05-08

  • Refactored all main JavaScript files to use const and let for variable declarations instead of undeclared variables, preventing accidental global scope pollution and improving code clarity.
  • Extracted repeated logic into reusable functions:
    • Created utility functions for updating logos, adding download buttons, and removing elements, reducing code duplication and improving maintainability.
  • Added element existence checks before accessing properties or methods:
    • Ensured all DOM queries are checked for null/undefined before use, preventing runtime errors if elements are missing.
  • Improved error handling:
    • Enhanced error logs with more context for easier debugging.
  • General code cleanup:
    • Added 'use strict' to all scripts for safer JavaScript execution.
    • Improved loop variable declarations and used modern JavaScript best practices.
  • No functional changes to user-facing features; all improvements are internal for maintainability, reliability, and future-proofing.
  • Widen the support urls: Added Vietnamese Studocu.vn url support

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant