Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gargakshit/heavy.js
Is your site too light? Make it heavy with a single script!
https://github.com/gargakshit/heavy.js
Last synced: 1 day ago
JSON representation
Is your site too light? Make it heavy with a single script!
- Host: GitHub
- URL: https://github.com/gargakshit/heavy.js
- Owner: gargakshit
- License: mit
- Created: 2022-05-30T18:39:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-08T11:13:28.000Z (4 months ago)
- Last Synced: 2025-01-15T02:58:19.158Z (4 days ago)
- Language: JavaScript
- Size: 862 KB
- Stars: 60
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# heavy.js
Is your site too light? Need more pizzaz?
Make it heavy with a single, zero dependency script.## How to?
Just add this snippet to your HTML:
```html
```
## How does it work?
It downscales all images on your webpage by a factor of 3, takes the RGB values
and creates spans with appropriate styles. Yes, this converts your images to
HTML `p` and `span`s.Might be tuned to my display? Who cares about the actual users' machines
anyways. If my M1 Max 64GB MacBook can run it, their machines will surely run
it!## Demo?
[Demo!](https://gargakshit.github.io/heavy.js/demo.html)
## Is this any good?
[Yes](https://news.ycombinator.com/item?id=3067434). Actually NO. This is
satire. Stop adding useless JavaScript to your websites just for the sake of it.
JS is alright if you are making an interactive webapp, but static content
should be static content.