Skip to content

Conversation

thibsy
Copy link
Contributor

@thibsy thibsy commented Oct 17, 2025

Hi @klees,

This has potential to cause some fallout, but IMO it's quite important. This

  • Changes the JavaScript code order from first-to-last to last-to-first (reversed)
  • and hereby ensures correct execution sequence

Currently, as a consumer of some Component\JavaScriptBindable, it is not possible to provide JavaScript (on-load) code that uses the facility offered by the component. Why is that? This is due to the fact that our Renderers will also register said facility using the same mechanism, so it will be appended. This leads to the initialisation-code being rendered last.

By reversing the order, consumers can now expect that a facility will be available and they can access it when providing their JavaScript code. This should probably be fixed with an improved mechanism altogether, but it will do for now.

Kind regards
@thibsy

@thibsy thibsy added kitchen sink improvement php Pull requests that update Php code labels Oct 17, 2025
* Change JavaScript order from first-to-last to last-to-first
* Ensures correct execution sequence
@thibsy thibsy force-pushed the fix/11/ui-javascript-bindable-order branch from 9908de6 to 16740bc Compare October 17, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement kitchen sink php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants