Is there a way to do transition to a page that is loaded through rel="external" + image question?
Hi,
I have a page which contains a lot of <div data-role="page" id="home">-pages
and each id is a unique identifier that I am using in another list to link to using page.html#unique_id. To make that work I use rel="external" so the page is reloaded.
Unfortunately that means I loose the transition from the previous page. Is there any way to do a transition when using rel="external"? I'm still on the local site but since I cannot access an id further down in the page without rel=external I'm a bit screwed.
I have been thinking of adding the pages to the same page as the list. however - each of those pages contains a image + info. Another Q is - even though just one part of the page is visible, does all the images on the page in other "<div data-role="page" id="home">"-divs get loaded in the background? See this example below:
- <div data-role="page" data-theme="b" id="byyear">
- <div data-role="header" >
- <h1>Nobel Laureates By Year</h1>
- </div>
- <!-- /header -->
- <div data-role="content" >
- <div style="padding-top:10px;"><ul data-role="listview" data-theme="d" data-inset="true">
- <li><a href="#id1" >Page 1</a></li>
- <li><a href="#id2" >Page 2</a></li>
- <li><a href="#id3" >Page 3</a></li>
- </ul></div>
- </div>
- <!-- /content -->
- <div data-role="footer">
- <h4>Page Footer</h4>
- </div>
- <!-- /footer -->
- </div>
- <!-- /page -->
- <div data-role="page" data-theme="b" id="id1">
- <div data-role="header" >
- <h1>Nobel Laureates By Year</h1>
- </div>
- <!-- /header -->
- <div data-role="content" >
- <img src="/link_to_image">
- <h2>Title</h2>
- <p>Some text</p>
- </div>
- <!-- /content -->
- <div data-role="footer">
- <h4>Page Footer</h4>
- </div>
- <!-- /footer -->
- </div>
- <!-- /page -->
- <div data-role="page" data-theme="b" id="id2">
- <div data-role="header" >
- <h1>Nobel Laureates By Year</h1>
- </div>
- <!-- /header -->
- <div data-role="content" >
- <img src="/link_to_image">
- <h2>Title</h2>
- <p>Some text</p>
- </div>
- <!-- /content -->
- <div data-role="footer">
- <h4>Page Footer</h4>
- </div>
- <!-- /footer -->
- </div>
- <!-- /page -->
- <div data-role="page" data-theme="b" id="id3">
- <div data-role="header" >
- <h1>Nobel Laureates By Year</h1>
- </div>
- <!-- /header -->
- <div data-role="content" >
- <img src="/link_to_image">
- <h2>Title</h2>
- <p>Some text</p>
- </div>
- <!-- /content -->
- <div data-role="footer">
- <h4>Page Footer</h4>
- </div>
- <!-- /footer -->
- </div>
- <!-- /page -->
Does all the images get downloaded when the page is accessed or just the image of the page currently being displayed? Any of the lists we have links to 50-100 people and while I could just put them in the same page (it's not that much info about each of them) having 50-100 images á 16 KB getting downloaded just because you look at one person seems not good.
If they do, would it be possible to do a javascript solution where the image at load time is a low-res profile-pic (same for everyone) and when you click on a person in the list it will use javascript to put the correct url into the scr for the image and load it?
I really am new to JQuery etc. so while I am trying to read up and learn I would appreciate some help is someone has an answer to these questions.
Thanks in advance.
Björn