{"id":16945132,"url":"https://github.com/rafbm/velcro-poc","last_synced_at":"2025-03-21T08:47:53.276Z","repository":{"id":4584119,"uuid":"5726124","full_name":"rafbm/velcro-poc","owner":"rafbm","description":"Velcro.js – Ajax bliss (Proof of concept)","archived":false,"fork":false,"pushed_at":"2012-09-26T19:29:54.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T05:25:53.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafbm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-08T06:20:22.000Z","updated_at":"2013-10-07T09:22:48.000Z","dependencies_parsed_at":"2022-07-29T17:40:03.655Z","dependency_job_id":null,"html_url":"https://github.com/rafbm/velcro-poc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafbm%2Fvelcro-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafbm%2Fvelcro-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafbm%2Fvelcro-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafbm%2Fvelcro-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafbm","download_url":"https://codeload.github.com/rafbm/velcro-poc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244767753,"owners_count":20507110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:21:11.879Z","updated_at":"2025-03-21T08:47:53.241Z","avatar_url":"https://github.com/rafbm.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Velcro.js – Ajax bliss (Proof of concept)\n=========================================\n\nVelcro can be considered an evolution of Chris Wanstrath’s [PJAX](http://pjax.heroku.com/).\n\nLike PJAX, Velcro is used for seamlessly changing a part of a page instead of reloading and re-rendering a whole new page.\n\nHowever, Velcro differs from PJAX on some fundamental aspects.\n\n# Principles\n\n- The true benefit of Velcro is that CSS and JS assets aren’t reloaded nor re-executed. This greatly speeds up rendering.\n- Transferring only the piece of content needed (without the layout) is considered micro-optimization. As long as only one HTTP request is made, transferring the extra bytes of your layout is less of a big deal than you might think.\n- There is no reason for all this to require the use of `history.pushState`. In any AJAX context, including operations made in browsers not supporting `history.pushState`, Velcro can be of good help.\n\n# Benefits\n\n- No server-side tweaks needed. Completely drop-in.\n- Can update multiple parts of a page at a time.\n- Doesn’t require the use of `history.pushState`.\n\n# Proof of concept setup\n    git clone git@github.com:rafBM/velcro-poc.git\n    cd velcro-poc\n    gem install sinatra sprockets coffee-script shotgun\n    shotgun\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafbm%2Fvelcro-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafbm%2Fvelcro-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafbm%2Fvelcro-poc/lists"}