If an extension provides an additional module or content element and it is loaded after this extension, then the palette changes won't be applied to those, since the palette does not exist yet.
Thus it would be better to use an eventlistener with a very low priority to ensure that you can apply the palette changes to all modules and content elements.
If an extension provides an additional module or content element and it is loaded after this extension, then the palette changes won't be applied to those, since the palette does not exist yet.
Thus it would be better to use an eventlistener with a very low priority to ensure that you can apply the palette changes to all modules and content elements.