22
My nav menu decided to fly off screen on launch day
I was putting the final touches on a client's site last Tuesday night, everything looked fine in my local dev environment. Pushed it live and suddenly the entire navigation bar shifted 400 pixels to the right, half the links were hidden off screen. Turns out I had a stray `position: absolute` on a wrapper div that only triggered on the live server's viewport size. Had to roll back to a backup at 11pm, spent the next morning adding media queries to catch the breakpoint. Anybody else had a "works fine locally" bug that made them want to throw their laptop?
2 comments
Log in to join the discussion
Log In2 Comments
thomas_johnson3512d ago
Used to think local hosting was solid enough for testing. A nav bar jumping sideways at launch changed that real quick. Now I always run a staging server that matches the live environment before pushing anything.
2
james_butler12d ago
Got a buddy who skipped the staging step on a client site last year. Spent six hours fixing a button that just vanished on mobile after the push. He tags me in every meme about testing now, swears @thomas_johnson35 is the voice of hard-won truth.
2