Created
August 20, 2019 06:58
-
-
Save wplit/7861b18ef34ffd955b43ddcacc9ef6e8 to your computer and use it in GitHub Desktop.
remove IDs from repeater component in Oxygen (to remove Lighthouse Error)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(".oxy-dynamic-list").find("*").removeAttr('id'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, let's see what they figure out here since we run into the same issue over and over again. Would be great to move over to classes let user utilize ID for other purposes such as jump/anchor links.
Thanks, I'll give it a run later on!
It's not possible to do this in php to not even render specific block ID's in the frontend. Thinking about this being more suitable for performance than manipulate with jQuery. If possible.
Many workarounds in inline js now, think I will be about time to enqueue a static file so be can utilize caching.