Skip to content

Releases: Digicreon/muJS

1.4.4

11 Mar 16:01

Choose a tag to compare

Support relative URLs and absolute same-origin URLs.

URLs like "../page.html", "page.html", and "https://same-domain.com/page" are now resolved and intercepted.
Previously, only paths starting with "/" were processed. Uses native URL constructor with same-origin check.

Refactor: code factorization.
Refactor: reduce minified size (progress bar cssText, deduplicate hasAttribute checks)

1.4.3

10 Mar 17:37

Choose a tag to compare

Debug
Fix View Transition timing and form Content-Type.

  • mu:after-render, pushState and scroll ran before startViewTransition() applied the DOM update. Post-render logic now waits for updateCallbackDone.
  • Form POST sent multipart/form-data regardless of enctype. Now sends URL-encoded by default, multipart only for enctype="multipart/form-data".

1.4.2

09 Mar 23:16

Choose a tag to compare

Debug
Fix load trigger not firing when init() is called before DOM is fully parsed.

1.4.1

09 Mar 23:14

Choose a tag to compare

Debug
Disable µJS on 'download' links.

1.4.0

06 Mar 13:33

Choose a tag to compare

Features

  • 9 injection modes: replace, update, prepend, append, before, after, remove, none, patch
  • Patch mode: multiple DOM fragments updated in a single response
  • Forms: GET and POST, HTML5 validation, custom validation (mu-validate), quit confirmation (mu-confirm-quit)
  • HTTP methods: GET, POST, PUT, PATCH, DELETE via mu-method
  • Triggers: click, submit, change, blur, focus, load via mu-trigger
  • Debounce (mu-debounce) and polling (mu-repeat)
  • Server-Sent Events via mu-method="sse"
  • Prefetch on hover (50 ms delay, GET only)
  • Independent mu-history and mu-scroll controls with context-dependent defaults
  • Scroll restoration on back/forward navigation
  • DOM morphing via Idiomorph (optional, auto-detected)
  • View Transitions API support (optional, auto-detected)
  • Built-in progress bar
  • Additive <head> merging (stylesheets, scripts)
  • Link filtering: external URLs, target, download, modifier keys, mu-disabled
  • Custom events: mu:init, mu:before-fetch, mu:before-render, mu:after-render, mu:fetch-error

Stats

  • Single file, no dependencies
  • Source: 59 KB / Minified: 15 KB / Gzipped: 4.9 KB

Browser support
Chrome 66+, Firefox 57+, Safari 12.1+, Edge 79+