Skip to content

Commit

Permalink
Add defer attribute to increase loading speed of pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismeonmounteverest committed Nov 10, 2023
1 parent 25db09c commit 088ff17
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/packages/webpack_encore.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
webpack_encore:
output_path: '%kernel.project_dir%/public/build'
preload: true

# Set attributes that will be rendered on all script and link tags
script_attributes:
defer: true
# referrerpolicy: origin
# link_attributes:
# referrerpolicy: origin

# if using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')
# crossorigin: 'anonymous'

0 comments on commit 088ff17

Please sign in to comment.