{"id":18409372,"url":"https://github.com/be-fe/web-performance","last_synced_at":"2025-04-07T09:33:39.819Z","repository":{"id":57286175,"uuid":"60141936","full_name":"be-fe/web-performance","owner":"be-fe","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-12T09:33:49.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-22T16:46:20.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"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/be-fe.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":"2016-06-01T03:16:39.000Z","updated_at":"2021-09-02T11:06:04.000Z","dependencies_parsed_at":"2022-08-29T11:51:11.060Z","dependency_job_id":null,"html_url":"https://github.com/be-fe/web-performance","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/be-fe%2Fweb-performance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/be-fe%2Fweb-performance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/be-fe%2Fweb-performance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/be-fe%2Fweb-performance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/be-fe","download_url":"https://codeload.github.com/be-fe/web-performance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247626851,"owners_count":20969395,"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-11-06T03:24:53.375Z","updated_at":"2025-04-07T09:33:39.582Z","avatar_url":"https://github.com/be-fe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## README\n\n### Why?\n\nThe popular SPA web pages are quite different from our traditional web page, most web performance tools can't fit in the scenarios. In most of the cases, we are not interested in the network slowness, but also the slowness of js runtime.\n\nThis tool is for monitering some hipcups during your page js runtime. It will start a regularly sampling process, and mark down the slowness point (based on the definition of slowness you gave in the config) while the user is interacting with your page. \n\n### How to get\n\n##### use npm:\n```sh\nnpm install jsperformance\n```\n\n##### use script:\n```html\n\u003cscript src=\"jsperformance.js\"\u003e\u003c/script\u003e\n```\n\n### How to use\n\n``` js\nvar webPerformance = new WebPerformance({\n\tname: 'Tester',        // Your app name\n\tslowStandard: 400,     // The definition of slowness for the js runtime (in miliseconds)\n\t\t\t\t\t\t   // When a slowness is met (longer than XXX ms), a callback onSlowFunc will be triggered\n\teventTimeout: 2500,\t   \n\tonEventHook: function(data) {\n\t\tconsole.log(data);\n\t},\n\tonSlowFunc: function(data) {\n\t\tconsole.log(data);\n\t},\n\t\n});\nwebPerformance.addEvents(['click', 'hashchange', 'resize']);  //the events you want to check\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbe-fe%2Fweb-performance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbe-fe%2Fweb-performance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbe-fe%2Fweb-performance/lists"}