The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Hiding on mobile – bad practice? Reply To: Hiding on mobile – bad practice?


Hi guys,

in my opinion. hiding content in mobile or desktop is a bad thing. why because suppose if i have some content with images, i set a component .hide class for mobile devices. content and images does not appeared in mobile but its must loads in mobile. even if we hide some parts in our web pages, no of request is same images loads, content also loads, we are just hiding it. performance same as in desktop version.

better way is “if you don’t want to show some content or images do not generate code in certain resolutions”. use some functional stuff for it. load required files in mobile for performance. if you don’t want use functional stuff, keep two different html and css files one for mobile and one for desktop. its good way. if your site is responsive. you don’t want to keep two different html, css files for same thing. go with Javascript or Jquery libraries.