Skip to content

Commit

Permalink
Ripping out Turbolinks now that it's been deprecated and archived. Ref
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink authored Sep 27, 2022
1 parent 54979c3 commit d947fe6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
3 changes: 1 addition & 2 deletions src/browser_app_skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"private": true,
"dependencies": {
"@rails/ujs": "^6.0.0",
"modern-normalize": "^1.1.0",
"turbolinks": "^5.2.0"
"modern-normalize": "^1.1.0"
},
"scripts": {
"heroku-postbuild": "yarn prod",
Expand Down
5 changes: 2 additions & 3 deletions src/browser_app_skeleton/src/components/shared/layout_head.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ class Shared::LayoutHead < BaseComponent
head do
utf8_charset
title "My App - #{@page_title}"
css_link asset("css/app.css"), data_turbolinks_track: "reload"
js_link asset("js/app.js"), defer: "true", data_turbolinks_track: "reload"
meta name: "turbolinks-cache-control", content: "no-cache"
css_link asset("css/app.css")
js_link asset("js/app.js"), defer: "true"
csrf_meta_tags
responsive_meta_tag

Expand Down
8 changes: 0 additions & 8 deletions src/browser_app_skeleton/src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,3 @@
// Though it says "Rails" it actually works with any framework.
require("@rails/ujs").start();

// Turbolinks is optional. Learn more: https://github.com/turbolinks/turbolinks/
require("turbolinks").start();

// If using Turbolinks, you can attach events to page load like this:
//
// document.addEventListener("turbolinks:load", function() {
// ...
// })

0 comments on commit d947fe6

Please sign in to comment.