I’m trying to collapse a container on load using the .collapse() function within onReady(). It works fine in preview but not in the live site. Clicking the “Collapsed on load” button does work but I would have thought that it should also work via code.
Hey,
Sorry for the late response.
I tried to perform the same operation and everything works properly.
Try creating new sections and Collapse them.
It is possible that something was destroyed in these Sections specifically.