Skip to content

Feedback on PRPL implementation #12

@addyosmani

Description

@addyosmani

@grgur Nice work. Looking at the current Helmet branch, here's some quick feedback reading through the source:

It appears routes are being 'preloaded' through script but without using link rel='preload'. Pardon me if you're using it but I couldn't find it. One way to load scripts using preload would be with a pattern like this one. Alternatively, you could use HTML Webpack Plugin to inject preload directives into your pages.

PRPL also recommends precaching routes. The easiest way to get this setup with Webpack would either be using https://www.npmjs.com/package/sw-precache-webpack-plugin in your Webpack config or directly using sw-precache in your npm scripts (e.g after your app is built, just run it against the static directory).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions