Skip to content

Cache check whether library URL exists slow down build #44

Closed
@jannschu

Description

@jannschu

Hi,

first, thanks for this plugin!

I noticed that my total build times increased significantly after adding this plugin (went from 5s to 20s). Upon further inspection I noticed that the code checks whether the JavaScript library exists at the configured URL by sending a HTTP request on every page although the library URL does not change.

Caching the URL check did show a very nice performance boost and brought build time down to 6s, so I propose to implement caching for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfixedThe issue is fixed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions