LoginSignup
3
5

More than 5 years have passed since last update.

プリロードを無効にする

Posted at

プリロードを無効にする

デフォルトでは全てのページのjsを読み込む動作になっており、ページ数が多くなってきたのでどうしたものかと
ドキュメント見たら普通に書いてあった。

resourceHints
Adds prefetch and preload links for faster initial page load time.
You may want to only disable this option if have many pages and routes.

ズバリこれだ if have many pages and routes.
という訳でコンフィグに書いて事なきを得た。

nuxt.config.js
module.exports = {
    render: {
        resourceHints: false
    },
3
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
5