mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 10:11:37 +01:00
Remove redundant asset preload (#2488)
* Remove redundant asset preload preloading these is already handled by glitch-soc theming system, meaning glitch packs get preloaded and if the user is signed in, vanilla packs. The theming system preloads these unconditionally though. Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com> * Remove preload of getting started This matches upstreams preloads Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com> --------- Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This commit is contained in:
parent
660372d130
commit
5b0382abc5
3 changed files with 0 additions and 5 deletions
|
@ -13,7 +13,6 @@ pack:
|
||||||
filename: packs/home.js
|
filename: packs/home.js
|
||||||
preload:
|
preload:
|
||||||
- flavours/glitch/async/compose
|
- flavours/glitch/async/compose
|
||||||
- flavours/glitch/async/getting_started
|
|
||||||
- flavours/glitch/async/home_timeline
|
- flavours/glitch/async/home_timeline
|
||||||
- flavours/glitch/async/notifications
|
- flavours/glitch/async/notifications
|
||||||
mailer:
|
mailer:
|
||||||
|
|
|
@ -12,7 +12,6 @@ pack:
|
||||||
home:
|
home:
|
||||||
filename: application.js
|
filename: application.js
|
||||||
preload:
|
preload:
|
||||||
- features/getting_started
|
|
||||||
- features/compose
|
- features/compose
|
||||||
- features/home_timeline
|
- features/home_timeline
|
||||||
- features/notifications
|
- features/notifications
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
- content_for :header_tags do
|
- content_for :header_tags do
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
= preload_pack_asset 'features/compose.js'
|
|
||||||
= preload_pack_asset 'features/home_timeline.js'
|
|
||||||
= preload_pack_asset 'features/notifications.js'
|
|
||||||
%meta{ name: 'initialPath', content: request.path }
|
%meta{ name: 'initialPath', content: request.path }
|
||||||
|
|
||||||
%meta{ name: 'applicationServerKey', content: Rails.configuration.x.vapid_public_key }
|
%meta{ name: 'applicationServerKey', content: Rails.configuration.x.vapid_public_key }
|
||||||
|
|
Loading…
Reference in a new issue