conditionnal display by device with jquery
-
Hello,
Thank you for your great plugin, it provide a very elegant way to display conditionnaly elements.
However, your method for masking a block (on mobile or desktop) is to use a display none, so the masked content is still loaded in the dom and this can affect performance (on mobile for exemple).Let’s say I have several blocks with quite a few images that should only be displayed on desktop, these images will still be loaded for the mobile version.
Is it possible to have an additional option for not loading the block? Via jquery and php? and maybe a listener to load element if user changer the size of his browser?
- You must be logged in to reply to this topic.