Is there a script that does some basic conversion of HTML to AMP? e.g. img -> amp-img
Kendo
2:15 am on Feb 15, 2020 (gmt 0)
Do you mean dynamic conversion (on the fly) as the page downloads, if and when mobile is detected?
Sounds doable if your pages are simple. Unfortunately mine aren't. I am using a tres-sensitive 3 column bootstrap theme which works well on a desktop but confusing on a mobile. I wasn't concerned because my target market is desktop users anyway and only get 25% mobile traffic. But if Google is ranking from mobile I need a solution.
My research so far is telling me that I need 2 formats, one for desktop and one for mobile. But they also need to be using the same URL. Manually creating if/else content for the header, footer and side templates is no problem. Eventually I may be able to customise the main content for the 3-400 pages on that site.
If you are using WordPress they have a plugin for AMP. Gossip is that the other CMS will have one soon. Windows mobile browser is not yet supporting AMP.
tangor
2:54 am on Feb 15, 2020 (gmt 0)
@magnoti ... Welcome to Webmasterworld!
As @kendo asks ... what are the details? Kind of difficult to guess what you need. :)
magnoti
4:30 am on Feb 15, 2020 (gmt 0)
I just want to convert some static html templates over to amp and don't want to do everything by hand. The resulting amp would also be static.
Kendo
5:17 am on Feb 15, 2020 (gmt 0)
I found some online validators. But these may be useful... [google.com ]
If using scripting like PHP you could filter and rewrite using replace conditionally.
tangor
9:04 am on Feb 15, 2020 (gmt 0)
How many templates? If less than 10 I'd do them by hand, that way I could also re-evaluate the templates and perhaps improve speed, display, etc... If more than that use a global edit assuming true html pages... I use Notepad++
Kendo
1:04 am on Feb 19, 2020 (gmt 0)
I haven't yet decided about AMP and still making some tests. According to Google, desktops load my test page in 2.1 secs but mobiles load in 4.3. So I created a page that conditionally omits the left and right hand columns of my 3 column test page to see it that made a difference. Note that AMP is not being used, just some content that gets lost on a mobile screen anyway.
Then I tested from an online service that provides results using a variety of different mobile phone brands and models. Some results were ignored by me because seemingly my mobile detection script is not up to date and a couple slipped through as PC.
But the most noticeable result is that the Google mobile phone tests were the slowest, much slower than all others and almost twice as slow as iPhone and Nokia, even though they use the Chrome web browser.
So wouldn't it make more sense if Google wants to "improve the user's mobile experience" to improve their own mobile devices?