-
Notifications
You must be signed in to change notification settings - Fork 478
Expand file tree
/
Copy pathhover_to_prefetch.html
More file actions
61 lines (58 loc) · 3.58 KB
/
hover_to_prefetch.html
File metadata and controls
61 lines (58 loc) · 3.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hover to Prefetch</title>
<script src="/dist/turbo.es2017-umd.js" data-turbo-track="reload"></script>
<script src="/src/tests/fixtures/test.js"></script>
<meta name="turbo-prefetch" content="true" />
</head>
<body>
<a href="/src/tests/fixtures/prefetched.html" id="anchor_for_prefetch">Hover to prefetch me</a>
<a href="/src/tests/fixtures/bare.html" id="anchor_for_prefetch_other_href">Hover to prefetch me</a>
<a href="/__turbo/delayed_response" id="anchor_for_slow_prefetch">Hover to prefetch me (response, that takes long to render)</a>
<a href="/src/tests/fixtures/prefetched.html" id="anchor_with_inner_elements">
<span>Hover to prefetch me</span>
</a>
<a href="/src/tests/fixtures/prefetched.html" id="anchor_with_turbo_stream" data-turbo-stream>Hover to prefetch me</a>
<div data-turbo="false">
<a href="/src/tests/fixtures/prefetched.html" id="anchor_with_turbo_false_parent">Won't prefetch when hovering me</a>
</div>
<div data-turbo-prefetch="false">
<a href="/src/tests/fixtures/prefetched.html" id="anchor_with_turbo_prefetch_false_parent">Won't prefetch when hovering me</a>
<div data-turbo-prefetch="true">
<a href="/src/tests/fixtures/prefetched.html" id="anchor_with_turbo_prefetch_true_parent_within_turbo_prefetch_false_parent">Hover to prefetch me</a>
</div>
</div>
<a href="/src/tests/fixtures/prefetched.html" id="anchor_with_turbo_prefetch_false" data-turbo-prefetch="false"
>Won't prefetch when hovering me</a>
<a href="/src/tests/fixtures/prefetched.html" id="anchor_with_turbo_false" data-turbo="false"
>Won't prefetch when hovering me</a>
<a href="/src/tests/fixtures/prefetched.html" id="anchor_with_remote_true" data-remote="true"
>Won't prefetch when hovering me</a>
<a href="/src/tests/fixtures/prefetched.html" id="anchor_with_turbo_stream" data-turbo-stream="true"
>Won't prefetch when hovering me</a>
<a href="/src/tests/fixtures/prefetched.html" id="anchor_with_turbo_confirm" data-turbo-confirm="Are you sure?"
>Won't prefetch when hovering me</a>
<a href="/src/tests/fixtures/hover_to_prefetch.html" id="anchor_for_same_location"
>Won't prefetch when hovering me</a>
<a href="/src/tests/fixtures/prefetched.html?foo=bar" id="anchor_for_same_location_with_query"
>Hover to prefetch me</a>
<a href="https://example.com" id="anchor_for_different_origin">Won't prefetch when hovering me</a>
<a href="http://localhost:9000/src/tests/fixtures/prefetched.html" id="anchor_with_whole_url"
>Hover to prefetch me</a>
<a href="#some_anchor" id="anchor_with_hash">Won't prefetch when hovering me</a>
<a href="ftp://example.com" id="anchor_with_ftp_protocol">Won't prefetch when hovering me</a>
<a href="/src/tests/fixtures/prefetched.html" target="prefetch_iframe" id="anchor_with_iframe_target"
>Won't prefetch when hovering me</a>
<a href="/src/tests/fixtures/prefetched.html" data-turbo-method="post" id="anchor_with_post_method"
>Won't prefetch when hovering me</a>
<iframe src="/src/tests/fixtures/hover_to_prefetch_iframe.html" name="prefetch_iframe"> </iframe>
<turbo-frame id="frame_for_prefetch">
<a href="/src/tests/fixtures/prefetched.html" id="anchor_for_prefetch_in_frame">Hover to prefetch me</a>
</turbo-frame>
<turbo-frame id="frame_for_prefetch_top" target="_top">
<a href="/src/tests/fixtures/prefetched.html" id="anchor_for_prefetch_in_frame_target_top">Hover to prefetch me</a>
</turbo-frame>
</body>
</html>