You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The asset bundle should only be registered/loaded when it is absolutely required.
Either the logic will need updating in the init() method to selectively register the bundle or you could use template hooks for the pages that need the bundle and register them that way.
e.g. {% do view.registerAssetBundle("mynamespace\\FooBundle") %}
The text was updated successfully, but these errors were encountered:
At the moment the asset bundle is being loaded on every control panel request (https://github.com/internetztube/craft-slug-equals-title/blob/master/src/SlugEqualsTitle.php#L31). This is not a good practice as it could cause issues/conflicts with other plugins/assets.
One such issue is in Commerce with the email preview feature: craftcms/commerce#1950
The asset bundle should only be registered/loaded when it is absolutely required.
Either the logic will need updating in the
init()
method to selectively register the bundle or you could use template hooks for the pages that need the bundle and register them that way.e.g.
{% do view.registerAssetBundle("mynamespace\\FooBundle") %}
The text was updated successfully, but these errors were encountered: