Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I've tried to change through facebook images, and this is what I saw:</p> <p><strong>In Firefox:</strong></p> <p>The page URL is not changing. Only the hash is changing. <a href="http://code.google.com/web/ajaxcrawling/docs/getting-started.html" rel="nofollow">This is a technique used to allow crawlers to index the content</a>. What happens is this:</p> <ul> <li>User clicks on "next"</li> <li>JS loads the next image with tags, comments, etc and replaces the old content with them.</li> <li>JS changes the hash to correspond the new image</li> </ul> <p>urls look like this: <code>http://www.facebook.com/home.php?#!/photo.php?fbid=1550005942528966&amp;set=a.1514725882151300.28042.100000570788121&amp;pid=3829033&amp;id=1000001570788121</code> (notice the hash)</p> <p>As for the second question, this is just a benefit of the technique above. When you are on facebook, the page rarely gets actually refreshed. Only the hash is changed so that you can send links to other people and crawlers can index the content.</p> <p><strong>In Google Chrome:</strong></p> <p><s>It seems that chrome hassome way to change urls without refreshing the page</s>. It does that by using <code>window.history.pushState</code>. Read about it <a href="http://www.spoiledmilk.dk/blog/?p=1922" rel="nofollow">here</a>.</p> <p>urls look like this: <code>http://www.facebook.com/photo.php?fbid=1613802157224343&amp;set=a.1514725288215100.28042.1000005707388121&amp;pid=426541&amp;id=1000001570788121</code> (notice that there is no hash here, but still the url is changing along with images)</p> <p><strong>In <a href="http://projects.gnome.org/epiphany/" rel="nofollow">Epiphany</a>:</strong></p> <p>Epiphany doesn't change the URL when the image changes.</p> <p>urls look like this: <code>http://www.facebook.com/photo.php?fbid=1441817122377521&amp;set=a.1514725882215100.28042.1000005707848121&amp;pid=3251944&amp;id=1000200570788121</code> (there is no hash, and the URL stays the same when changing the image)</p> <p>(don't have other browsers to verify right now)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload