Our predicament is that we are using 3 media queries with different layouts which means that we're essentially generating all of the content 3 times. For instance:
<div class="small-media">
{embed="template/view_small"}
</div>
<div class="medium-media">
{embed="template/view_medium"}
</div>
<div class="large-media">
{embed="template/view_large"}
</div>
You can see how ridiculous this is. We have tons of things being pulled in and we're starting to see overages on our data for doing it this way.
We're wondering if there's a way to use PHP (or EE itself) at the top of the document to load everything once and then send only the pertinent data to the nested templates at each media query.
Thanks for any input on this.