Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Form factor and client browser detection (UserAgent) #630

Open
ddaza opened this issue Aug 22, 2023 · 0 comments
Open

Feature Request: Form factor and client browser detection (UserAgent) #630

ddaza opened this issue Aug 22, 2023 · 0 comments

Comments

@ddaza
Copy link

ddaza commented Aug 22, 2023

The VCL provides some client helpers for form factor and browser detection. i.e. client.browser.name or client.display.width.

And we would love to use something similar on the JS runtime. The current alternative is to use a collection of regexes on the User Agent, which can slow down the processing of requests.

This would be helpful to us (and others) because we make our experience slightly different for mobile vs desktop as far as loading assets or amount of code.

What are the recommended alternatives to this? And if there is enough buy-in, what would be the timeline of a feature like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant