It would be better if we could choose whether the contents of the blocks should be loaded or not.

When we have like 7-8 collapsed blocks, their contents are being loaded at the startup too. so visitors see their contents before they collapse.

What i'm talking about is something like the activeedit button. only if we click to the button, the edit form loads. If we can choose to select whether the collapsed blocks' contents will be loaded on the startup or not.

This way, our pages will load faster, the collapsed blocks' contents will be seen when they are needed(that's why we are making them collapsed :) )

Comments

korayal’s picture

while asking, i have another feature request too.

is it possible to record the choices made by the visitor/user?

i mean, let's say we have 5 collapsible blocks. and our user wants to have blocks nr. 1,2,5 collapsed, and 3,4 not collapsed. so he uncollapses blocks 3 and 4. but when he clicks on a link on the page, he has to uncollapse those blocks again.

So is it possible to record these kinds of choices to the cookie, so everytime that visitor visits the site, he won't need to uncollapse/collapse those blocks all the time.

nedjo’s picture

Please address separate features in new issues.

The cookie behaviour you request is supposed to be already in the module--cookies are used to track the user's preferences. If this isn't working, pls open a bug report.

As for the initial collapsed state, I've given this thought but not found a way to address it within the approach taken. Keep in mind that we aren't (and really can't be) overriding the generation of the content in the first place. We're just hiding and revealing it. We can't hide it until it's available to be hidden, and at that point it's (sometimes, briefly) visible to the user.

In other cases we use the .js class to affect content to prevent display of hidden elements, but here we don't have that ability because the class selectors we need aren't generated at the theming level--we add them through js.

So I'm open to ideas, but I don't see a solution.