Jump to content

Archived

This topic is now archived and is closed to further replies.

Objectif-Mariage

how to load the site for specific device ?

Recommended Posts

Objectif-Mariage

hello , 

here we can see that's possible to "hidde" stuff to specific device : http://docs.pagelines.com/tutorials/html-css-utilities. 

But (tell me if i'm wrong) , in fact, it's load all the page, and AFTER decide to show or hidde some stuff for differents device . 

 

So for exemple , if i decide to have a big image for a desktop compter , une medium image for a tablet , and a very small one for smartphone, ALL version will be load , but only the appropriate version will be show  ....

 

 

So the question is : is there a way to load only what we need , according to the device (and i suppose it's a "little bit candide/ingenious" question,.... )

Alex

Share this post


Link to post
Share on other sites
Simon

Not really doable unless you somehow switch the images via PHP before the page is rendered. Using javascript the device will load the page before the script runs anyway.

If you are considering it for the site in your profile then you are out of luck for the PHP method anyway as you are using a static page cache.

Share this post


Link to post
Share on other sites
Objectif-Mariage

hmmm :( ...thak you !

Share this post


Link to post
Share on other sites

×