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

Home Forums Other Best approach for conditional loading (mobile-first) Re: Best approach for conditional loading (mobile-first)


@Paulie_D – Of course! So when you conditionally load content in javascript, all you do is an ajax call to load in that snippet? This could be the missing piece of the puzzle I was after.

The reason for this is let’s say I wish to display a latest tweet on the webpage. This obviously needs javascript. It’s just a small addition in the footer which doesn’t really need to be served to mobile users, so would rather not serve that to them, especially as social API’s tend to slow down pages.

I was also asking as a general technique as I may wish to use this elsewhere.

Thanks again for your help