Prevent element drom loading on desktop or mobile

Hello,

I’m trying to organize a lot of information in one page. On desktop I want to use tabs and on mobile accordion. The easy way is to use both and hide with css the element I don’t need based on device screen size. But this way the page load time is increased.
Is it possible not only hide an element, but prevent it from loading?
If not, what is the best practice I should follow on Pro theme?

Thank you!

Hello Roman,

The only approach to achieve this with Pro is to use the Hide Based on Screen Width feature that is available in the v2 elements.

If you are aiming to have some elements loaded dynamically based on the screen width, that would require custom development which goes beyond the scope of our support.

Thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.