3 ms·
I love this technique. It's how I built this image gallery for my daughter's website https://www.zadieheimlich.com/easter-2016/ https://www.zadieheimlich.com/ea
by kingkool68 10y ago
I love this technique. It's how I built this image gallery for my daughter's website https://www.zadieheimlich.com/easter-2016/ https://www.zadieheimlich.com/easter-2016/
Didn't use PageAccelerator or Instantclick or Turbolinks. It's just jQuery. Here is the source https://github.com/kingkool68/zadieheimlich/blob/master/js/post-gallery.js https://github.com/kingkool68/zadieheimlich/blob/master/js/p...
I like this way over a client-side JavaScript framework app approach because...
1) It fails gracefully if JavaScript is unavailable
2) I can keep most of the logic on the server side since the JavaScript is only fetching an HTML page and parsing for content
3) It's fast :)
- Domenic_S 10y ago4) it breaks the back button
- o_____________o 10y agoDoesn't break for me on Chrome
- tarellel 10y agoWhat browser are you using? Because it works fine for me.
- a012 10y agoPhotos can't load at all: https://i.imgur.com/uvxNb6i.png https://i.imgur.com/uvxNb6i.png
- rangibaby 10y agoThe background of your page is displaying random junk from my screen in Safari: https://dl.dropboxusercontent.com/u/22209335/Screen%20Shot%202016-09-13%20at%205.41.07%20PM.png https://dl.dropboxusercontent.com/u/22209335/Screen%20Shot%2... It works fine in other browsers. My computer may be at fault. Is this the magic of your magic-shield? :-)
- oliv__ 10y agoIn my browser (OSX, Firefox 48), there is this horrible flash every time I switch pictures. IMO, the perceived speed is completely outweighed by this flickering and it makes the website/web app feel flaky.