amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

AMP Autosuggest Performance

Open Kishan08 opened this issue 8 years ago • 9 comments

I've implemented auto-suggest and found some performance issue.

What's the issue?

I'm currently using typeahead.js for auto-suggest. So i want to replace it with AMP auto-suggest. Now the issue with AMP auto-suggest is, when i search query for first time [after site loaded] it took approx. 3 Sec. to render the suggestion list. And for non amp version [with typeahead] it took approx. 1.5 Sec to render the suggestion list for the same query.

I've tried using 'input-throttled' instead of input-debounce but with no luck.

Any suggestion on how to improve this?

What browsers are affected?

Latest version of Chrome and Firefox.

Which AMP version is affected?

Version 1516833286380

Kishan08 avatar Jan 29 '18 12:01 Kishan08

/to @cvializ

aghassemi avatar Jan 30 '18 02:01 aghassemi

@Kishan08 Can you please try on Safari/iOS as well? I ran into a similar issue where there's a rendering delay on Chrome/Webkit/Android. The same amp-list works without delay on iOS/Safari. Here are the details: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/amphtml-discuss/DAHtpfCupgo/aabjD6W5AQAJ

adnanyousafch avatar Jan 31 '18 07:01 adnanyousafch

Any update?

Kishan08 avatar Feb 02 '18 09:02 Kishan08

@Kishan08 Can you provide a link to the documents where you are observing the fast vs. slow behavior? That will help me investigate. Thank you!

cvializ avatar Feb 02 '18 22:02 cvializ

This issue seems to be in Pending Triage for awhile. @cvializ Please triage this to an appropriate milestone.

ampprojectbot avatar Jun 05 '18 08:06 ampprojectbot

This issue seems to be in Pending Triage for awhile. @cvializ Please triage this to an appropriate milestone.

ampprojectbot avatar Oct 16 '18 10:10 ampprojectbot

FYI we do not see irregular browser behavior or browser performance with amp-autosuggest. So am interested in a problem link as it may be doing something that we'll encounter in the future.

jaygray0919 avatar Oct 18 '18 11:10 jaygray0919

This issue seems to be in Pending Triage for awhile. @cvializ Please triage this to an appropriate milestone.

ampprojectbot avatar Jan 24 '19 04:01 ampprojectbot

Hi there!

This issue is related to the AMP autosuggest example that we removed when we launched the new dedicated amp-autocomplete component: https://amp.dev/documentation/examples/components/amp-autocomplete/?format=websites

I'm going to go ahead and close this issue with the recommendation that you try out the new component, but please feel free to let us know if you are still experiencing any performance problems with use. Thanks!

caroqliu avatar Jun 14 '19 17:06 caroqliu