antfu-collective / icones

⚡️ Icon Explorer with Instant searching, powered by Iconify
https://icones.js.org
MIT License
4.94k stars 238 forks source link

Page became unresponsive after clicking the go back button #306

Closed OneMoreJack closed 2 months ago

OneMoreJack commented 2 months ago

Describe the bug

Everytime I clicked the go back button on the top-left corner, the page became unresponsive.

Reproduction Steps:

  1. open https://icones.js.org/ in your browser(Chrome in my case)
  2. click an icon set
  3. click the go back button
image

Reproduction

https://icones.js.org/

System Info

System:
    OS: macOS 14.2.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 169.36 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.6.0 - ~/.nvm/versions/node/v16.18.1/bin/npm
    pnpm: 8.15.6 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 123.0.6312.122
    Safari: 17.2.1

Used Package Manager

npm

Validations

antfu commented 2 months ago

There was a big and get fixed a few days ago. Can you clean the cache and make sure you are on the latest version and see if it still presist? Thanks

OneMoreJack commented 2 months ago

I cleaned the cache in my browser, checked the "Disable Cache" checkbox in devtools, and reload the page, it turned out that the problem was still there.

Snipaste_2024-04-12_23-36-09

Then, I thought that may be, it was the "Service Worker" caused the issue, therefore, I manually unregistered it. Now I'm facing another problem 😂, Everytime I reload "https://icones.js.org/":

  1. the site will verify if I'm a real human
  2. then there comes some 403 error in networks and the page remain empty
image

I did some research and run the following code in Console

navigator.serviceWorker.register("/serviceworker.js");

then I got a 403 error.

What can I do to register the service work back?

OneMoreJack commented 2 months ago

problem solved