Flag of Ukraine
SymfonyCasts stands united with the people of Ukraine
Next Chapter

Challenge #1 of 1


Q: 

Our site has a sidebar that takes forever to load, so our project manager wanted us to extract it into a lazy Turbo Frame.

Now he wants us to show a loading indicator while it's loading! Here's the loading code:

<turbo-frame id="app_sidebar">
    {{ include('templates/_busySidebar.html.twig') }}

    <span class="frame-loading-show fas fa-spinner fa-spin">
    </span>
</turbo-frame>

How can I show and hide this spinner only when the turbo frame is busy?

userVoice