diff --git a/.erb-lint.yml b/.erb-lint.yml index df80cf9a83f..3a52bb710a6 100644 --- a/.erb-lint.yml +++ b/.erb-lint.yml @@ -1,6 +1,10 @@ --- EnableDefaultLinters: true linters: + AllowedScriptType: + allowed_types: + - "text/javascript" + - "speculationrules" DeprecatedClasses: enabled: true rule_set: diff --git a/app/views/chapters/_chapter.html.erb b/app/views/chapters/_chapter.html.erb index 5c520be1f7e..6ec4f7d6f48 100644 --- a/app/views/chapters/_chapter.html.erb +++ b/app/views/chapters/_chapter.html.erb @@ -79,6 +79,20 @@ <% end %> + <% if @next_chapter && $rollout.active?(:prefetch_next_chapter) %> + + <% end %> + <% end %>