add prefetch at home page
This commit is contained in:
parent
3e2ff83cc8
commit
ed73106116
@ -21,6 +21,7 @@ class HomeController extends Controller
|
||||
'home_page_css_loader',
|
||||
config('app.asset.env') === 'development' ? $webpack->url('home.js') : null
|
||||
)
|
||||
->with('app_js', $webpack->url('app.js'))
|
||||
->with('user_can_register', option('user_can_register'));
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,9 @@
|
||||
{% endif %}
|
||||
}
|
||||
</style>
|
||||
<link rel="prefetch" as="script" href="https://cdn.jsdelivr.net/npm/react@16.13.1/umd/react.production.min.js" crossorigin="anonymous">
|
||||
<link rel="prefetch" as="script" href="https://cdn.jsdelivr.net/npm/react-dom@16.13.1/umd/react-dom.production.min.js" crossorigin="anonymous">
|
||||
<link rel="prefetch" as="script" href="{{ app_js }}" crossorigin="anonymous">
|
||||
</head>
|
||||
|
||||
<body class="hold-transition layout-top-nav">
|
||||
|
Loading…
Reference in New Issue
Block a user