Use JSON attributes instead of multiple data attributes in the DOM tree #204
benedikt-buchert
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Interesting approach. I thought you were talking about using JSON for data attributes only. Not for the entity and action itself, too:
The What do you think: Is it an improvement to support data attributes in JSON format just for the properties? Or would it blow up the code too much when devs could translate props to the current format? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
as I mentioned briefly on Measurecamp. It might be interesting to encode data-elb attributes as json payloads. These should be very easy to parse and can allow you to keep all tracking related attributes for each component in one element.
Instead of doing:
Why would this be beneficial:
Why not do this:
Beta Was this translation helpful? Give feedback.
All reactions