icykoneko / ff14-fish-tracker-app

FF14 Fish Tracker App
https://ff14fish.carbuncleplushy.com
MIT License
61 stars 21 forks source link

bug: Pin fish in FFX|V Fish Tracker App takes 2 seconds #113

Open LunaPg opened 2 years ago

LunaPg commented 2 years ago

bug: Pin fish in FFX|V Fish Tracker App takes 2 seconds"

Describe the bug When you pin a fish, it take 2 seconds for the frontend to actually pin the fish, without any backend calls. (Looks like, in the console, it sorts again the whole fishing list)

To Reproduce Steps to reproduce the behavior:

  1. Got to Pin fish in FFX|V Fish Tracker App takes 2 seconds
  2. Click on a fish to pin
  3. Wait for 2-3 seconds

Expected behavior It should be instant

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

icykoneko commented 2 years ago

This is a known issue. There have been a few issues completed already that attempt to improve the load times of the site. Currently, as you've noted, the biggest issue is with the redrawing due to all of the rows being present on the page even if they aren't visible. The sorting actually doesn't take all that long (relative to the redraw).

For now, I'll leave this open but the focus will be addressing the redraw part as this is what's actually causing the problems.