Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

SUI-Components/prpl-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extract PRPL

Get all the Hints from a webpage.

Platform: Now V2

Understanding the PRPL pattern

Apply instant loading with the PRPL pattern

Local testing

I have no idea how local testing for Now is supposed to work, so I created a tiny HTTP server in dev.js that calls the actual function that gets deployed. Run npm run dev to run a local version of the function for local testing.

Query Params

  • device (m): Which kind of device do you want to use in your tests. Should be one of -> m, t, d
  • url: URLEncode of the url that ypu want to test.
  • cdn: String to use in the filter of the results.
  • strategy (allEvaluations): Which stategy do you want to use to filter the hints. Should be one of -> allEvaluations, longestEvaluation
    • allEvaluations: Just all scripts evaluated, and coming from your CDN. Should be your ShellApp at least.
    • longestEvaluation: From allEvaluations select the biggest evaluation, calculate his order of magnitude and use all the hints in the same order.

Deployment

Using Now: now.

$ now --prod -t $NOW_TOKEN

Releases

No releases published

Packages

No packages published