Created by: odlp
Adds a link to show the resource within each cell of the collection table, as an alternative to the data-url
on the tr
. The link is styled with the default text colour so there's no visual change.
This allows a resource to be shown without javascript enabled (and also facilitates faster tests using RackTest).
On my machine running the same test comparing:
-
click_show_link_for
(+ no JS) -
click_row_for
(+ with JS)
is a lot faster, as expected:
Run | no JS | JS |
---|---|---|
1 | 0.88 | 2.04 |
2 | 0.85 | 1.93 |
3 | 0.85 | 1.96 |
4 | 0.84 | 2.02 |
5 | 0.82 | 2.04 |
Avg | 0.85 | 2.00 |
Std.Dev | 0.02 | 0.05 |
(in seconds, running each test independently, excluding file load times)