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

FR: Better client-side customization and personalization through expressions and <html> attributes #14971

Open
jamesshannon opened this Issue Apr 30, 2018 · 8 comments

Comments

@jamesshannon
Copy link
Contributor

commented Apr 30, 2018

Thought I'd start a discussion around a possible solution to what, IMO, is one of AMP's weaker areas.

Personalization and other load-time customizations are a continual challenge. <amp-bind> is fine for BTF content, but even where it's allowed it adds in the fundamental delays of an additional request.

<amp-experiments> has "solved" this by blocking the page until a (small) amount of JS can be run (e.g., to pick a random number or check a cookie). The could be a similar approach to allowing for basic customizations. The expressions could allow access to cookies and other things (e.g., time of day) and then set attributes / classes on a top element.

@aghassemi

This comment has been minimized.

Copy link
Member

commented May 1, 2018

/to @ericlindley-g specially now that amp-geo is allowed to run at load time, we may want to allow similar features as long as they don't need to make a network request.

@ericlindley-g

This comment has been minimized.

Copy link
Collaborator

commented May 3, 2018

Great ideas — I've been thinking about spinning up a dedicated project for this, since I agree it's one of the biggest gaps for AMP that puts certain use-cases out of reach.

I think the best first step is to assemble concrete use-cases. @jamesshannon , do you have a set in mind to seed the list? We can circle back offline to make an actual doc to take to design review to reduce chatter in-thread.

@AndrewKGuan

This comment has been minimized.

Copy link

commented May 7, 2018

Absolutely useful, a lot of eCommerce and car brands would love to use it on their remarketing targets.
For example, some users who searched for sedans could see an AMP home page of a car brand showing sedans (vs. showing all models) and highlighting dealerships near the users.

@ampprojectbot

This comment has been minimized.

Copy link
Collaborator

commented Jun 5, 2018

This issue doesn't have a category which makes it harder for us to keep track of it. @ericlindley-g Please add an appropriate category.

@aghassemi

This comment has been minimized.

Copy link
Member

commented Jun 11, 2018

related: time of the day CSS hooks: #15787

@ericlindley-g

This comment has been minimized.

Copy link
Collaborator

commented Jul 16, 2018

Circling back on this — we're figuring ideas in this area this quarter, and need to get a comprehensive understanding of real-world use cases to get the most value out of it. Will be following up with some of the folks who have reached out directly, but this is a great place for you to add your feedback if you're a developer who has struggled with customization/personalization/dynamic data in AMP in the past.

Thanks!

@ampprojectbot

This comment has been minimized.

Copy link
Collaborator

commented Oct 16, 2018

This issue hasn't been updated in awhile. @ericlindley-g Do you have any updates?

@ampprojectbot

This comment has been minimized.

Copy link
Collaborator

commented Feb 13, 2019

This issue hasn't been updated in awhile. @aghassemi Do you have any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.