Remove pl-dark-masto-fe, add preloading for common scripts
authorMorgan Bazalgette <the@howl.moe>
Sat, 31 Mar 2018 17:14:47 +0000 (19:14 +0200)
committerMorgan Bazalgette <the@howl.moe>
Sat, 31 Mar 2018 17:14:47 +0000 (19:14 +0200)
lib/pleroma/web/templates/mastodon_api/mastodon/index.html.eex

index f96b15d647f67fd1d94d640094fbab66f2f7158d..6a00b9e2c9465faa32269c4886d35e281fa1d187 100644 (file)
@@ -9,14 +9,17 @@
 <link rel="icon" type="image/png" href="/favicon.png"/>
 <link rel="stylesheet" media="all" href="/packs/common.css" />
 <link rel="stylesheet" media="all" href="/packs/default.css" />
-<link rel="stylesheet" media="all" href="/packs/pl-dark-masto-fe.css" />
 
 <script src="/packs/common.js"></script>
 <script src="/packs/locale_en.js"></script>
+<link as='script' crossorigin='anonymous' href='/packs/features/getting_started.js' rel='preload'>
+<link as='script' crossorigin='anonymous' href='/packs/features/compose.js' rel='preload'>
+<link as='script' crossorigin='anonymous' href='/packs/features/home_timeline.js' rel='preload'>
+<link as='script' crossorigin='anonymous' href='/packs/features/notifications.js' rel='preload'>
 <script id='initial-state' type='application/json'><%= raw @initial_state %></script>
 <script src="/packs/application.js"></script>
 </head>
-<body class='app-body'>
+<body class='app-body no-reduce-motion'>
   <div class='app-holder' data-props='{&quot;locale&quot;:&quot;en&quot;}' id='mastodon'>
   </div>
 </body>