Home / Mobile / Google’s Mobile-Friendly Testing Tool Lets Users Test and Edit Actual Code – Search Engine Journal

Google’s Mobile-Friendly Testing Tool Lets Users Test and Edit Actual Code – Search Engine Journal

Google’s Mobile-Friendly Testing Tool Lets Users Test and Edit Actual Code
‘ );

h3_html = ‘

‘+cat_head_params.sponsor.headline+’

‘;

cta = ‘‘+cat_head_params.cta_text.text+’
atext = ‘

‘+cat_head_params.sponsor_text+’

‘;
scdetails = scheader.getElementsByClassName( ‘scdetails’ );
sappendHtml( scdetails[0], h3_html );
sappendHtml( scdetails[0], atext );
sappendHtml( scdetails[0], cta );
// logo
sappendHtml( scheader, “http://universaltechnews.com/wp-content/uploads/2019/03/Google’s-Mobile-Friendly-Testing-Tool-Lets-Users-Test-and-Edit-Actual-Code-Search-Engine-Journal.com” );
sc_logo = scheader.getElementsByClassName( ‘sc-logo’ );
logo_html = ‘http://universaltechnews.com/wp-content/uploads/2019/03/Google’s-Mobile-Friendly-Testing-Tool-Lets-Users-Test-and-Edit-Actual-Code-Search-Engine-Journal.com‘;
sappendHtml( sc_logo[0], logo_html );

sappendHtml( scheader, ‘

ADVERTISEMENT

‘ );

if(“undefined”!=typeof __gaTracker){
__gaTracker(‘create’, ‘UA-1465708-12’, ‘auto’, ‘tkTracker’);
__gaTracker(‘tkTracker.set’, ‘dimension1’, window.location.href );
__gaTracker(‘tkTracker.set’, ‘dimension2’, ‘digital-marketing-tools’ );
__gaTracker(‘tkTracker.set’, ‘contentGroup1’, ‘digital-marketing-tools’ );
__gaTracker(‘tkTracker.send’, { ‘hitType’: ‘pageview’, ‘page’: cat_head_params.logo_url, ‘title’: cat_head_params.sponsor.headline, ‘sessionControl’: ‘start’ });
slinks = scheader.getElementsByTagName( “a” );
sadd_event( slinks, ‘click’, spons_track );
}
} // endif cat_head_params.sponsor_logo

Google’s mobile-friendly and AMP testing tools have been upgraded with the ability to test actual code.

Previously, these tools only supported the testing of live URLs.

Being able to test code gives developers an opportunity to ensure a site is mobile-friendly before it goes live.

If you don’t pass the test right away you can always edit the code on the fly and immediately re-run the test.

Google shared an example of what the new feature looks like in action, which you can see below:

When using either the mobile-friendly or AMP testing tools you can now toggle between entering a URL or pasting the raw code.

Prior to this update, users were only given the option to enter a URL.

Google’s Mobile-Friendly Testing Tool Lets Users Test and Edit Actual Code

Results of the test are delivered in the same fashion whether you’re testing a URL or testing code. There’s no difference in how the results are presented.

So this is a small but useful update that could end up being an essential step in the development process.


Source link

Check Also

PUBG Mobile to enliven DWP 2019 – The Jakarta Post – Jakarta Post

Slated to run this weekend at JIExpo Kemayoran, Central Jakarta, the Djakarta Warehouse Project (DWP) electronic …

Leave a Reply

Your email address will not be published. Required fields are marked *