https://github.com/dayvidwhy/redfetch
🐶 Endless subreddit image gallery scrolling in plain JavaScript with no frameworks.
https://github.com/dayvidwhy/redfetch
image reddit scrolling
Last synced: about 1 month ago
JSON representation
🐶 Endless subreddit image gallery scrolling in plain JavaScript with no frameworks.
- Host: GitHub
- URL: https://github.com/dayvidwhy/redfetch
- Owner: dayvidwhy
- License: mit
- Created: 2016-12-27T06:51:55.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2024-04-01T01:05:37.000Z (about 2 years ago)
- Last Synced: 2024-04-14T23:09:15.573Z (about 2 years ago)
- Topics: image, reddit, scrolling
- Language: JavaScript
- Homepage: https://dayvidwhy.github.io/redfetch/
- Size: 93.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RedFetch
I made this as a way of understanding the [Fetch API](https://developer.mozilla.org/en/docs/Web/API/Fetch_API) and loading images after initially loading a thumbnail image.
## Installation
```bash
git clone git@github.com:dayvidwhy/redfetch.git
cd redfetch
open index.html
```
This project does not use any build tools, it is just HTML, CSS and JavaScript, so you just have to open the included HTML file and the project will load.
## About
There are other reddit image viewers out there that offer more functionality, but I found that all I wanted to do was browse through the images, so I made something that does just that.
It seems faster than other sites so far and performs well on mobile.
I also make use of debouncing to prevent browser lag when the page is scrolled and scrolling to the bottom allows for more images to be loaded.
## Contributing
Feel free to make an issue with a suggested feature you might like.
Please note that I intend to keep this application light weight and login based operations may not be supported at all in the future.
## Licence
See the file `LICENSE` in the repository root directory.