05-03-2023, 09:49 AM
(This post was last modified: 05-03-2023, 09:49 AM by Alexandre Machado.)
Hi Dr. Bob,
I can confirm that this issue exists.Thanks for your detailed report and workaround.
Unfortunately, an ancient poor piece of code went unnoticed when the behavior of the method changed and it broke AddToJavaScriptOnce() result. Instead of inserting the code at once, FinalizeContext() inserts small pieces of code.
The change is because it is PageContext responsibility to ensure that no duplicate code is inserted by different pieces of code rendered in different component contexts, such as the image cache.
Anyway, a new overloaded method has been introduced and the FinalizeContext() method has also been "fixed" so that it won't insert just small pieces of a JavaScript method.
The new maintenance update 15.3.5 is already available.
I can confirm that this issue exists.Thanks for your detailed report and workaround.
Unfortunately, an ancient poor piece of code went unnoticed when the behavior of the method changed and it broke AddToJavaScriptOnce() result. Instead of inserting the code at once, FinalizeContext() inserts small pieces of code.
The change is because it is PageContext responsibility to ensure that no duplicate code is inserted by different pieces of code rendered in different component contexts, such as the image cache.
Anyway, a new overloaded method has been introduced and the FinalizeContext() method has also been "fixed" so that it won't insert just small pieces of a JavaScript method.
The new maintenance update 15.3.5 is already available.

