SOLVED -How to have an accordion open on page load without animation?

I have an accordion in one page and in it I have a form that I submit and upload an image .

And when I submit it, I load the same page to display the uploaded image.

And when I reload the page I want to check if the accordion was opened or not, so I send an variable to the page and if that variable has a value then the accordion should be opened when the page reloads.

And I have this working but the problem is the accordion animation, it is showing when I reload the page, so it is animating to open and that is not looking good.

So I what to know if I can use’#spa’)

without it animating?

Ok so I solved it by adding this when the page loads. Good!