Closed frankcollins3 closed 1 year ago
onload () => scrollTop
<script>
// Scroll to the top of the container when the page loads
window.onload = function() {
var container = document.querySelector('.pokemon-list-container');
container.scrollTop = 0;
};
</script>
[9:22pm]
{space-between} surprised chatGPT didn't advise this. realized the solution since padding-top: 200px helps for smaller datasets but still creates problem for same so putting more space over the top would help. that's when space-between became obvious [9:38pm]
attempting to do: // sidenote: could've posted another issue but it's ok. got list working. had to initialize the list that holds the image src.
PokemonSrc = new List<string>();
then another error was the client loop:
error:
proposed approach: lazy loading? pagination?
possible improvements: