• Resolved sunnycmui

    (@sunnycmui)


    Say I have a directory structure like:

    assets
    |_ js
    __|_ scripts.js
    __|_ other.js
    __|_ builder
    _____|_ content.js
    _____|_ editor.js

    If I add this under Scripts to Defer:

    assets/js

    Would that also apply defer to the files in the subfolder? Or would I have to specifically add:

    assets/js/builder

    To also get defer on the scripts in the builder directory?

    • This topic was modified 7 years, 8 months ago by sunnycmui.
Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Would that also apply defer to the files in the subfolder?

    it would, provided those files are referenced in the HTML as scripts with a src (it would not apply to JS-files that are loaded from within other JS-files).

    hope this clarifies,
    frank

Viewing 1 replies (of 1 total)

The topic ‘Does Adding a Directory to Defer Include Scripts in Subdirectories?’ is closed to new replies.