Giter Site home page Giter Site logo

hoangtuan110 / 250kb-club Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nkoehring/250kb-club

0.0 1.0 0.0 821 KB

An exclusive members-only club for web pages weighing no more than 250kb. Inspired by Bredley Taunts 1MB.club

Home Page: https://250kb.club

License: MIT License

Shell 0.01% TypeScript 0.36% HTML 99.62%

250kb-club's Introduction

250kb-club

An exclusive members-only club for web pages weighing no more than 250kb.

Inspired by Bradley Taunt's 1MB.club.

But why?

I love the idea of a list of webpages that are still reasonably usable with a slow internet connection. But 1MB is, in my honest opinion, still way too much. Nobody wants to wait 10 seconds โ€” on good days โ€” to load a web site. And a very large chunk of the world population isn't gifted with Gigabit internet connections.

Of course, the absolute size of a website is not a perfect indicator. A page might contain a lot of text or images as important part of their content. It would be unfair to call them bloated in this case. This is why, additionally to the absolute size the ratio of visible to invisible content is shown as well.

Adding a web page

Please send a patch or pull request. If unsure, you can also write a ticket mentioning the website(s). The website(s) will be added after passing the review and measured for changes about once every week.

What are those values?

The values shown in the list are URL, Total Weight, Content Ratio.

Websites listed here are downloaded and analyzed with YellowLabTools. The total weight is counted and then the size of actual content is measured and shown as a ratio. A higher ratio means more of the size is actual content.

For example: If a website has a total weight of 100kb and 60kb are the documents structure, text, images, videos and so on, then the content ratio is 60%. The rest are extras like CSS, JavaScript and so on. It is hard to say what a good ratio is but my gut feeling is that everything above 20% is pretty good already.

All shiny

This page got completely rebuild and several issues of the old version got solved. It now has pagination (100 pages per... well, page) and detail pages for every entry that you can link to.

Hacking this page

This page needs three components to work:

The application that updates the page information is build with Typescript 4.6 and Deno 1.20. It uses no external packages except encoding/toml from the standard library.

A local (docker) version of YellowLabTools is used for the page analysis. It uses Phantomas as well as other tools to create a exhaustive metric.

The page analyser application generates markdown files that are rendered to a static web page by Zola.

git clone https://git.sr.ht/~koehr/the-250kb-club 250kb-club
# or: git clone https://github.com/nkoehring/250kb-club.git
cd 250kb-club
mkdir -m a+rwx yltresults # for access to YLT results

And build the page with yarn build.

The website analysis is done by compile-list.js which reads pages.txt and writes the results to src/components/pages.mjs. pages.txt is curated by hand.

250kb-club's People

Contributors

auroraanna avatar blmayer avatar chrisportela avatar danielsiepmann avatar hoangtuan110 avatar indexerrowaty avatar jamesmstone avatar jhvanderschee avatar jieiku avatar mroggy85 avatar nkoehring avatar qubyte avatar renanlecaro avatar seirdy avatar unixdigest avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.