2 ms·
Someone who used jQuery.load a lot back in the day, it's nice to see this trend coming back. Only thing that stands out to me is using custom properties without
by Ciantic 3y ago
Someone who used jQuery.load a lot back in the day, it's nice to see this trend coming back. Only thing that stands out to me is using custom properties without data prefix, e.g.
<a href="newpage.html" swap-target="#container" swap-history="true">Click me</a>
Shouldn't that be data-swap-target="#container" data-swap-history="true"? Is custom properties okay these days without data?
- solarkraft 3y agoI believe doing this is already quite common and there's no real drawback. As far as I know the main advantage of the data- prefix is that there's a guarantee that no official spec will use it.