The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
Re problem 1: I’m not getting the FOUC. I tried it in three browsers, Chrome, Firefox and Safari. I also cleared my browser cache and tried again and still didn’t see it.
Re problem 2: I’m not sure what you mean by the key in the code gets filtered out. Please elaborate. Thanks.
maurice.tadros3
Hello @mburridge,
Thanks for helping me out (BTW I enjoyed your tutorials).
Regarding Problem 1: I took a video of what I am seeing. When I press “Refresh” the menu items shift.
Re problem 1 - I did notice the menu move but thought that was an animation that you’d designed in. For FOUC I expected to see text rendered in black Times New Roman on a white page momentarily before the san-serif font on a pale blue background kicked in, and also default browser alignment, i.e. all elements left aligned. I didn’t see any of that - the styling was there immediately. The menu issue might be something else, i.e. not a FOUC as the styling kicks in immediately on page load as far as I can see.
Re problem 2 - I think the “key” attribute is something that React uses internally for iterating over arrays, so I’m not sure you should be expecting it in the final HTML. See here for how React uses keys.
maurice.tadros5
Hello @mburridge,
RE problem 1 - The animation is not by design. If it is not a FOUC, what could it be? I’m not really sure why it is happening. I’ve not added any animations. Any thoughts?
RE 2: I stand corrected. Thank you for the clarification
Cheers,
Maurice
mburridge6
Hi @maurice.tadros
I’m not sure. I’ll clone your repo and take a look at the code to see if I can figure it out - no promises though!
maurice.tadros7
Thank you @mburridge !!
No promises that I’m using Frontity and Tailwind in the best way possible.