{"id":21355805,"url":"https://github.com/typedb/angular-posthog-freeze","last_synced_at":"2025-03-16T05:25:33.486Z","repository":{"id":262644764,"uuid":"887905193","full_name":"typedb/angular-posthog-freeze","owner":"typedb","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-13T14:12:21.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-22T18:09:48.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/typedb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-13T13:40:52.000Z","updated_at":"2024-11-13T14:12:24.000Z","dependencies_parsed_at":"2024-11-13T14:48:27.034Z","dependency_job_id":"f1f002ee-777b-4be7-a5ed-82fb4576afa1","html_url":"https://github.com/typedb/angular-posthog-freeze","commit_stats":null,"previous_names":["typedb/angular-posthog-freeze"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typedb%2Fangular-posthog-freeze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typedb%2Fangular-posthog-freeze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typedb%2Fangular-posthog-freeze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typedb%2Fangular-posthog-freeze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typedb","download_url":"https://codeload.github.com/typedb/angular-posthog-freeze/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830005,"owners_count":20354751,"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-22T04:19:58.617Z","updated_at":"2025-03-16T05:25:33.459Z","avatar_url":"https://github.com/typedb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular PostHog Freeze MRE\r\n\r\nThis repository exists so that we can diagnose an issue where our website freezes indefinitely with the PostHog snippet enabled, but does not freeze with the snippet disabled.\r\n\r\n(NB: There are other ways to fix the freeze, including code refactors.)\r\n\r\n## Quick reproduction\r\n\r\n1. Visit https://angular-posthog-freeze.netlify.app/ (without any adblocker extensions in your browser)\r\n2. The website should open in your browser, and immediately freeze, becoming unresponsive. You can verify this by right-clicking anywhere on the page, or clicking the \"Hello World\" button.\r\n\r\nYou can also observe the issue go away if you enable uBlock Origin in your browser and reload the site.\r\n\r\n## Build from source (for debugging)\r\n\r\n### Environment\r\n\r\n- Node.js v18.16.0 (e.g. through NVM)\r\n- PNPM v7.33.7\r\n- Chrome 130.0.6723.117 (without any adblocker extensions)\r\n- MacOS Sonoma v14.5\r\n\r\n### Steps to reproduce\r\n\r\n1. Clone the repo\r\n1. `pnpm i`\r\n1. `ng serve --open`\r\n\r\nThe website should open in your browser, and immediately freeze, becoming unresponsive. You can verify this by right-clicking anywhere on the page, or clicking the \"Hello World\" button.\r\n\r\nIf you go to `main.ts` and comment out the call to `posthog.init`, the issue goes away.\r\n\r\n## Additional information\r\n\r\nAdblockers may cause the issue to not show up.\r\n\r\nThe issue also goes away if you take out the Angular Material popup menu from the source code. We hypothesise that somehow the two are not playing together well.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypedb%2Fangular-posthog-freeze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypedb%2Fangular-posthog-freeze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypedb%2Fangular-posthog-freeze/lists"}