Another workarounds is to @push() your assets to a @stack() in your layouts. This way, your code will be organized and execute properly.
@push()
@stack()