Symfony UX: Turbo
Frame Loading Animations
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

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?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.