Connect with us

SEO

14 Mobile Optimization Best Practices You Need To Know

Published

on

14 Mobile Optimization Best Practices You Need To Know

It has been a while since Google began rolling out its mobile-first index.

When this was first announced, SEO professionals were scurrying everywhere to ensure that their site was in compliance with Google’s Core Web Vitals and best practice mobile development guidelines.

Optimizing for the mobile web is an entirely comprehensive sub-field within SEO, requiring specialist-level knowledge and its own best practices in order to be successful.

So much so, that many industries require a full, quality implementation of their website on mobile. And not everyone measures up.

In many cases, sometimes most sites fall short in fulfilling their goal to be compliant.

Clearly, this is a mistake because of the fact that mobile design is such a prevalent part of our digital society:

Advertisement
  • 96% of Americans aged 18-29 own a smartphone.
  • As of 2020, there were over 3.6 billion users who used a smartphone device worldwide. There will be 4.3 billion by 2023.
  • In 2020, mobile users spent 90% of their time in apps as opposed to mobile browsers.
  • Google accounts for 93.22% of the mobile search market share in the United States in 2021.
  • Initial mobile search result on Google tends to achieve a 26.9% organic CTR (click-through rate).

In order to take advantage of the absolute best possible online presence, you must optimize for many different types of devices and screen resolutions. Not just for desktops.

And now, Google is rolling out their desktop page experience update. But that update is beyond the scope of this article, although it does play into page experience overall.

To achieve the absolute best mobile implementation, it’s important to ensure that you create a mobile site that is in compliance with these best practices, and that also creates opportunities to increase your Core Web Vitals numbers.

By using a responsive design and not an m-dot subdomain, observing best practices with image creation and optimization, and observing compression and minification, you can achieve a quality mobile site that reaches as many people within your audience as possible.

That is where your mobile site is going to be successful.

1. Make Sure All Content Is The Same On Desktop & Mobile

The idea behind this best practice is to avoid duplicate content and accusations of cloaking.

To be safe, always make sure that all content is the same on the desktop version of your site as it is on mobile.

Advertisement

One of the best techniques to use to make sure this happens is responsive design.

Responsive design, for those who don’t know, involves creating a style sheet that uses “media queries” to automatically transition designs between a wide variety of platforms and devices.

If you want to squeeze out all possible speed and make your design lean and mean, consider looking into CSS sprites to reduce server-side requests.

2. Above The Fold Isn’t Gone Entirely

It’s important to remember that in a mobile environment, where things scroll endlessly, above the fold is not gone entirely.

It is still preferable to have at least some of the text content above the fold on a mobile design, to show someone that there is a reason to scroll.

The psychological benefits and desires of wanting to see what you offer are not gone entirely, so you do still have to optimize for this somewhat on many different mobile devices.

Advertisement

3. Use A ‘Top Down’ Development Approach

A “from the top-down” development approach means that you consider all potential consequences of each decision made in a design from start to finish.

You develop for mobile-first, rather than desktop-first, and then tacking on a mobile design after. This development approach is ideal because you don’t introduce issues into the final design.

Here’s an example: You create a desktop website. About three-quarters of the way through the process, you decide that you want to create a mobile site on top of it.

You create the mockup. But, after coding the mockup and moving throughout the transitions, you find a bug here. And you find a bug there. Then you find a bug over there. This is because the bottom-up approach does not work and causes scope creep.

This is the phenomenon where unseen issues crop up at the last minute, causing unforeseen bugs and increases in hours that were not originally provided for when the project was originally scoped out.

The truth is, if the top-down approach for mobile responsive design were considered straight from the beginning, these bugs and things that need to be worked out would not be popping up at the end, causing this dreaded issue.

Advertisement

4. Don’t Focus Exclusively On The Mobile Consumer, Though

As mobile and desktop merge, so too are the goals and desires of the users of these platforms.

When you focus on what your user wishes to achieve based on the platform, you create a holistic approach that reaches customers through your website more effectively.

Whether a user is purchasing a product or performing research on the services you provide, the blend of user goals and client acquisitions of the business will continue.

So much so, that specifically focusing on these ideals and values will become less necessary.

Not less important, mind you, just less necessary as this blend of mobile and desktop continues.

5. Use Responsive Design Techniques

The days of separate m-dot websites (m.example.com) are over.

Advertisement

There is no possible redeemable reason to use such an implementation in the mobile-first era.

The structure can be very messy, with multiple URLs creating duplicate content issues if they are not properly optimized.

There are many techniques available to ensure that an effective transition is completed, but otherwise, m-dot implementations have gone the way of the dodo with the advent of new technologies.

Today, the ideal implementation involves a responsive design. These designs use what are called media queries to define the display resolutions that the design will support.

Each separate resolution is what’s called a “breakpoint” in the design, or the point at which the responsive design transitions from one resolution to the next.

The benefit to using this kind of structure is that you do not run into the duplicate content issues that you would on an m-dot implementation.

Advertisement

Also, your mobile implementation will be on the latest technology.

6. Think ‘Code’ Instead Of ‘Images Everywhere’ To Increase Site Speed

Do you really need to use that two-color background as the 2-pixel wide by 1200-pixel high repeating background?

If you don’t, and you can code it instead, code it instead.

While something so small won’t make a major dent in site speed, the optimizations can add up as they are completed.

Next time you perform a site audit or otherwise create a website, think: “Do I really need this image here or can I simply code it instead?”

If the image really isn’t necessary, coding the object could help increase site speed exponentially, especially on-site designs that utilize an overabundance of graphics.

Advertisement

7. Customize WordPress For Mobile

There are many plug-ins available for WordPress.

So much so, that some even provide functionality for increased mobile compatibility.

The most useful plug-ins for this purpose are Duda Mobile, W3 Total Cache, as well as plug-ins for minifying HTML and CSS.

8. Don’t Use Intrusive Interstitials To Sell Your Product

Yes. We know. Your product is the greatest, most awesome thing to grace this planet. That’s why we are probably visiting your website and doing research on it before we buy.

But, we do not need to have an intrusive ad that blocks our activity throughout your site to bug us on the sale.

Where possible, keep the intrusive interstitials to a minimum, and keep the ads towards the bottom or off to the side with an option to click on the ad and remove it at the very least.

Advertisement

It is important to note that Google does penalize intrusive interstitials.

It is worth reading their developer guides along with their webmaster guidelines on this issue, as well as their blog post on this topic.

9. Check Your Site On Multiple Operating And Display Systems

Any SEO should know how to identify weaknesses in a website’s existing implementation, including where and how to find problems on various displays and devices.

You want to check your site on more than one operating system, as well as more than one display device. Doing this ensures that your site is compatible with as wide a range of displays and platforms as possible.

But, what if you cannot afford a thousand devices in order to check them?

This all comes down to a few applications. Yes! It’s possible to check these types of issues with more than one application.

Advertisement

Google’s Web Developer Chrome Extension

If you’re on a budget, using Google’s Web Developer Chrome Extension can help you examine how your site looks in many different screen sizes and resolutions.

It also offers the ability to see how your site looks through different device orientations, how touch inputs interact through simulation, and much more.

It’s also possible to use their debugging tool to examine a site’s code for problems.

BrowserStack

BrowserStack.com is a great tool for testing on many different browsers, operating systems, and display resolutions. They also have a Google Chrome extension you can take advantage of for this purpose.

You can test any site on over 2,000 real devices, browsers, and operating systems.

By having a paid account, you get unlimited access to their browser extension for testing.

Advertisement

Cross Browser Testing

CrossBrowserTesting.com is an alternative to BrowserStack that you can use for testing browsers and devices.

Offering more than 1,500 browsers and platforms for testing, its product offering is not short on what you can do.

Screenshot comparisons are possible with their tool, along with being able to simulate how your website behaves on real-world devices.

10. Follow Mobile Video Best Practices

Yes, there are mobile video SEO best practices! Google still needs to have some signals embedded on the page so its search engine better understands the video that’s on that page.

This article from Search Engine Journal’s own Matt Southern details Google’s five recommended video SEO best practices.

Things like on-page text, referral links, structured data, and video files are important.

Advertisement

There are also other things you want to watch out for as you create videos

For example, you want to make sure that your videos are accessible to the public. This means making sure that your YouTube privacy settings are set to public, and that you should have a Google-accessible webpage with that video.

With structured data, using the VideoObject data type on Schema.org is recommended.

Google recommends using the following mobile video best practices for a flawless mobile video implementation:

  • Using custom controls with a div root element, along with a video media element, and a div child element that is dedicated to video controls.
  • Using a play/pause video button.
  • Ensuring that the user can seek backward and forward.
  • Their comprehensive technical implementation of a mobile video is second to none and walks you through the process step-by-step.

As Google says:

“If the user’s primary reason for visiting is for video, this user experience must become immersive and re-engaging.”

Aside from the obvious, other mobile video SEO best practices include:

Making it as easy as possible for Google to actually find your videos. This means:

Advertisement
  • Using a video sitemap: If you don’t submit a video sitemap, Google may not be able to find your videos directly. A video sitemap makes it even easier for you to submit this sitemap in Google Search Console, which makes it even easier for Google to crawl and potentially index your videos.
  • Don’t use complex user actions or URL fragments: If these are used to load your videos, it’s possible that Google may not find your videos at all, because these things on your page are too complex for Google to understand.
  • Use an easily-identifiable HTML tag: Some of the valid ones include video, iframe, object, or embed. It’s easier for Google to identify videos when they are embedded within common tags.
  • Make sure your videos can actually be indexed. It happens: sometimes somebody may make a change to a robots.txt file that blocks video files from being crawled (through no fault of your own…hopefully). If your videos were being indexed, and now all of a sudden they are not, it’s worth taking a look at your robots.txt file to make sure they are not being blocked.
  • Use Google-supported thumbnail formats: There are also thumbnail best practices that you need to follow in the above Google web developer documentation

Mobile video SEO is not always as easy as one may think.

While not every single box needs to be checked, there are things that could be detrimental to your mobile video crawling and indexing if they are not.

11. Use Schema.org Structured Data

Schema.org structured data is important for not only identifying pages on your site that have special, structured information the search engines need to see but when the mobile index comes into full play, expect to see an increased reliance on Schema.

This is a concise, easy method of understanding information that can then be translated into rich snippets in the mobile search results.

But, either way, it is this author’s opinion that Schema structured data be used even on desktop implementations because it can help you appear in rich snippet results based on your targeted keyword. This can help enhance the visibility of your site when implemented correctly.

12. Don’t Block Supporting Scripts Like JavaScript, CSS, Or Things Like Images

This should be common sense when developing sites for any platform, whether desktop or mobile, but some people still do it.

It is important to make sure that supporting scripts for your mobile design is not blocked, because this blockage can result in issues like mobile soft 404s down the line. It can also result in desktop 404s.

Advertisement

But, if you block these files from being crawled by Google, they cannot crawl these files to see that your website works correctly.

When they can’t do this, this can result in lower rankings because they can’t fully understand your website.

13. Image Compression And Optimization

For the mobile web, image optimization is a critical component to get right. This means that you must ensure that images are properly optimized for all image sizes on all possible resolutions.

It’s not possible to create one image and ensure that it is viewable everywhere. Well, you can. But it will look distorted on resolutions it was not made for.

Instead, using holistic SEO best practices and making sure that you create images that are high quality at every resolution but also load quickly is something that is recommended.

This is why there are several responsive design best practices that Google recommends using in order to optimize your images for the mobile platform. They recommend the following:

Advertisement
  • Use relative image sizes. If you use relative image sizes, you end up preventing them from overflowing the container tag that houses the image.
  • Use inline images. It’s possible to reduce page speed by ensuring that inline images are used in order to reduce file requests. These should be used on pages that may not be used elsewhere on your site.
  • For higher DPI devices, use the srcset attribute for images. This helps you add more than one image file for different devices.
  • If you are doing e-commerce SEO, you may want to make your product images expandable. Customers may want to enlarge the image that they are potentially purchasing on their device in order to see it better. So, providing this option makes sense.

The trick to integrating images in your mobile optimizations is: Striking a balance between image size, loading them on a mobile device, and ensuring the right page speed without lowering image quality on any major device that your audience is searching for.

14. Optimize Overall Page Size

Page size is a major consideration for a mobile-friendly website. To be truly mobile-friendly, page size must load fast. To do this, optimizing the overall DOM size is necessary.

To do this effectively, you must take into consideration not only what I discuss in the above link, but also the following:

Don’t Use Unnecessary Custom Fonts

Using unnecessary custom fonts can complicate your page load process and increase the number of scripts that are required in order to process your page.

This translates to increased page load time and can increase your Core Web Vitals scores out of the desirable range.

Where possible, use system fonts instead and you can bring the impact that this causes down to a minimum.

Optimize Your Images

You also want to make sure that you optimize your images while preserving image quality. It’s not a professional result if someone arrives on your site and your image’s quality is grainy because of over-compression, you have not achieved the best result.

Advertisement

Ideally, you should be using image file sizes that are in line with what will produce the highest quality on the mobile devices that your site is optimized for while making sure that you don’t dip below that quality point.

This is a delicate balancing act and requires someone with expertise in optimizing images in order to arrive at the desired results.

Reduce The Amount Of Resources The Overall DOM And Critical Rendering Path Need

The more resources that your page needs in order to render, the higher your page download speed will be. You should never need more than 10 plugins (max) and three to four script files in order to process a webpage.

This author has seen situations where there are 160 plugins loading and the page file size is 10 MB. This is absolutely not where you want to be.

To be the most effective, this author’s opinion is that pages on a WordPress site should never exceed 150-250 KB – on average – and should not include more than five to seven resources max (CSS, external font if needed, an ad file, a JavaScript file, and three plugins). If you require more, then you may not be as optimized as you think.

And, don’t underestimate the savings that utilizing system fonts over external web fonts will save you.

Advertisement

Minify Your Pages

The process of minification on your pages involves compressing your files in order to save space and reduce their overall page load times as a result.

Using minification as a process will help you get rid of unwanted white space in your code, and compress that code so that it takes up the absolute least possible space necessary.

Ideally, the best process will involve no plugins. You would want to hire a developer to manually minify your pages.

If you’re already overloaded with plugins, adding another one to minify your pages is a bad idea. In these cases, you would want to use a professional-level developer in order to ensure the best result.

If you have minimal plugins already, then using a professional developer for this task will help you achieve even better page load times and Core Web Vitals scores.

If you absolutely must use a plugin, just be sure to use it as a temporary measure until you can have a professional developer go in and manually minify your code.

Advertisement

Mobile-First Is Here; The Need For Implementation Has Reached Critical Mass

With the arrival of Google’s mobile-first index, implementing your cross-platform, cross-device, cross-compatible website has now reached massive priority.

This means that the longer you delay, the more that not having just a mobile implementation, but not having the right mobile implementation is going to cost you in many ways.

Not just rankings.

If you haven’t yet made the jump to mobile, why not?


Featured Image: Dragana Gordic/Shutterstock

Source link

Advertisement
Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address

SEO

Google On Hyphens In Domain Names

Published

on

By

What Google says about using hyphens in domain names

Google’s John Mueller answered a question on Reddit about why people don’t use hyphens with domains and if there was something to be concerned about that they were missing.

Domain Names With Hyphens For SEO

I’ve been working online for 25 years and I remember when using hyphens in domains was something that affiliates did for SEO when Google was still influenced by keywords in the domain, URL, and basically keywords anywhere on the webpage. It wasn’t something that everyone did, it was mainly something that was popular with some affiliate marketers.

Another reason for choosing domain names with keywords in them was that site visitors tended to convert at a higher rate because the keywords essentially prequalified the site visitor. I know from experience how useful two-keyword domains (and one word domain names) are for conversions, as long as they didn’t have hyphens in them.

A consideration that caused hyphenated domain names to fall out of favor is that they have an untrustworthy appearance and that can work against conversion rates because trustworthiness is an important factor for conversions.

Lastly, hyphenated domain names look tacky. Why go with tacky when a brandable domain is easier for building trust and conversions?

Advertisement

Domain Name Question Asked On Reddit

This is the question asked on Reddit:

“Why don’t people use a lot of domains with hyphens? Is there something concerning about it? I understand when you tell it out loud people make miss hyphen in search.”

And this is Mueller’s response:

“It used to be that domain names with a lot of hyphens were considered (by users? or by SEOs assuming users would? it’s been a while) to be less serious – since they could imply that you weren’t able to get the domain name with fewer hyphens. Nowadays there are a lot of top-level-domains so it’s less of a thing.

My main recommendation is to pick something for the long run (assuming that’s what you’re aiming for), and not to be overly keyword focused (because life is too short to box yourself into a corner – make good things, course-correct over time, don’t let a domain-name limit what you do online). The web is full of awkward, keyword-focused short-lived low-effort takes made for SEO — make something truly awesome that people will ask for by name. If that takes a hyphen in the name – go for it.”

Pick A Domain Name That Can Grow

Mueller is right about picking a domain name that won’t lock your site into one topic. When a site grows in popularity the natural growth path is to expand the range of topics the site coves. But that’s hard to do when the domain is locked into one rigid keyword phrase. That’s one of the downsides of picking a “Best + keyword + reviews” domain, too. Those domains can’t grow bigger and look tacky, too.

That’s why I’ve always recommended brandable domains that are memorable and encourage trust in some way.

Advertisement

Read the post on Reddit:

Are domains with hyphens bad?

Read Mueller’s response here.

Featured Image by Shutterstock/Benny Marty

Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
Continue Reading

SEO

Reddit Post Ranks On Google In 5 Minutes

Published

on

By

Google apparently ranks Reddit posts within minutes

Google’s Danny Sullivan disputed the assertions made in a Reddit discussion that Google is showing a preference for Reddit in the search results. But a Redditor’s example proves that it’s possible for a Reddit post to rank in the top ten of the search results within minutes and to actually improve rankings to position #2 a week later.

Discussion About Google Showing Preference To Reddit

A Redditor (gronetwork) complained that Google is sending so many visitors to Reddit that the server is struggling with the load and shared an example that proved that it can only take minutes for a Reddit post to rank in the top ten.

That post was part of a 79 post Reddit thread where many in the r/SEO subreddit were complaining about Google allegedly giving too much preference to Reddit over legit sites.

The person who did the test (gronetwork) wrote:

“…The website is already cracking (server down, double posts, comments not showing) because there are too many visitors.

…It only takes few minutes (you can test it) for a post on Reddit to appear in the top ten results of Google with keywords related to the post’s title… (while I have to wait months for an article on my site to be referenced). Do the math, the whole world is going to spam here. The loop is completed.”

Advertisement

Reddit Post Ranked Within Minutes

Another Redditor asked if they had tested if it takes “a few minutes” to rank in the top ten and gronetwork answered that they had tested it with a post titled, Google SGE Review.

gronetwork posted:

“Yes, I have created for example a post named “Google SGE Review” previously. After less than 5 minutes it was ranked 8th for Google SGE Review (no quotes). Just after Washingtonpost.com, 6 authoritative SEO websites and Google.com’s overview page for SGE (Search Generative Experience). It is ranked third for SGE Review.”

It’s true, not only does that specific post (Google SGE Review) rank in the top 10, the post started out in position 8 and it actually improved ranking, currently listed beneath the number one result for the search query “SGE Review”.

Screenshot Of Reddit Post That Ranked Within Minutes

Anecdotes Versus Anecdotes

Okay, the above is just one anecdote. But it’s a heck of an anecdote because it proves that it’s possible for a Reddit post to rank within minutes and get stuck in the top of the search results over other possibly more authoritative websites.

hankschrader79 shared that Reddit posts outrank Toyota Tacoma forums for a phrase related to mods for that truck.

Advertisement

Google’s Danny Sullivan responded to that post and the entire discussion to dispute that Reddit is not always prioritized over other forums.

Danny wrote:

“Reddit is not always prioritized over other forums. [super vhs to mac adapter] I did this week, it goes Apple Support Community, MacRumors Forum and further down, there’s Reddit. I also did [kumo cloud not working setup 5ghz] recently (it’s a nightmare) and it was the Netgear community, the SmartThings Community, GreenBuildingAdvisor before Reddit. Related to that was [disable 5g airport] which has Apple Support Community above Reddit. [how to open an 8 track tape] — really, it was the YouTube videos that helped me most, but it’s the Tapeheads community that comes before Reddit.

In your example for [toyota tacoma], I don’t even get Reddit in the top results. I get Toyota, Car & Driver, Wikipedia, Toyota again, three YouTube videos from different creators (not Toyota), Edmunds, a Top Stories unit. No Reddit, which doesn’t really support the notion of always wanting to drive traffic just to Reddit.

If I guess at the more specific query you might have done, maybe [overland mods for toyota tacoma], I get a YouTube video first, then Reddit, then Tacoma World at third — not near the bottom. So yes, Reddit is higher for that query — but it’s not first. It’s also not always first. And sometimes, it’s not even showing at all.”

hankschrader79 conceded that they were generalizing when they wrote that Google always prioritized Reddit. But they also insisted that that didn’t diminish what they said is a fact that Google’s “prioritization” forum content has benefitted Reddit more than actual forums.

Why Is The Reddit Post Ranked So High?

It’s possible that Google “tested” that Reddit post in position 8 within minutes and that user interaction signals indicated to Google’s algorithms that users prefer to see that Reddit post. If that’s the case then it’s not a matter of Google showing preference to Reddit post but rather it’s users that are showing the preference and the algorithm is responding to those preferences.

Advertisement

Nevertheless, an argument can be made that user preferences for Reddit can be a manifestation of Familiarity Bias. Familiarity Bias is when people show a preference for things that are familiar to them. If a person is familiar with a brand because of all the advertising they were exposed to then they may show a bias for the brand products over unfamiliar brands.

Users who are familiar with Reddit may choose Reddit because they don’t know the other sites in the search results or because they have a bias that Google ranks spammy and optimized websites and feel safer reading Reddit.

Google may be picking up on those user interaction signals that indicate a preference and satisfaction with the Reddit results but those results may simply be biases and not an indication that Reddit is trustworthy and authoritative.

Is Reddit Benefiting From A Self-Reinforcing Feedback Loop?

It may very well be that Google’s decision to prioritize user generated content may have started a self-reinforcing pattern that draws users in to Reddit through the search results and because the answers seem plausible those users start to prefer Reddit results. When they’re exposed to more Reddit posts their familiarity bias kicks in and they start to show a preference for Reddit. So what could be happening is that the users and Google’s algorithm are creating a self-reinforcing feedback loop.

Is it possible that Google’s decision to show more user generated content has kicked off a cycle where more users are exposed to Reddit which then feeds back into Google’s algorithm which in turn increases Reddit visibility, regardless of lack of expertise and authoritativeness?

Featured Image by Shutterstock/Kues

Advertisement

Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
Continue Reading

SEO

WordPress Releases A Performance Plugin For “Near-Instant Load Times”

Published

on

By

WordPress speculative loading plugin

WordPress released an official plugin that adds support for a cutting edge technology called speculative loading that can help boost site performance and improve the user experience for site visitors.

Speculative Loading

Rendering means constructing the entire webpage so that it instantly displays (rendering). When your browser downloads the HTML, images, and other resources and puts it together into a webpage, that’s rendering. Prerendering is putting that webpage together (rendering it) in the background.

What this plugin does is to enable the browser to prerender the entire webpage that a user might navigate to next. The plugin does that by anticipating which webpage the user might navigate to based on where they are hovering.

Chrome lists a preference for only prerendering when there is an at least 80% probability of a user navigating to another webpage. The official Chrome support page for prerendering explains:

“Pages should only be prerendered when there is a high probability the page will be loaded by the user. This is why the Chrome address bar prerendering options only happen when there is such a high probability (greater than 80% of the time).

There is also a caveat in that same developer page that prerendering may not happen based on user settings, memory usage and other scenarios (more details below about how analytics handles prerendering).

Advertisement

The Speculative Loading API solves a problem that previous solutions could not because in the past they were simply prefetching resources like JavaScript and CSS but not actually prerendering the entire webpage.

The official WordPress announcement explains it like this:

Introducing the Speculation Rules API
The Speculation Rules API is a new web API that solves the above problems. It allows defining rules to dynamically prefetch and/or prerender URLs of certain structure based on user interaction, in JSON syntax—or in other words, speculatively preload those URLs before the navigation. This API can be used, for example, to prerender any links on a page whenever the user hovers over them.”

The official WordPress page about this new functionality describes it:

“The Speculation Rules API is a new web API… It allows defining rules to dynamically prefetch and/or prerender URLs of certain structure based on user interaction, in JSON syntax—or in other words, speculatively preload those URLs before the navigation.

This API can be used, for example, to prerender any links on a page whenever the user hovers over them. Also, with the Speculation Rules API, “prerender” actually means to prerender the entire page, including running JavaScript. This can lead to near-instant load times once the user clicks on the link as the page would have most likely already been loaded in its entirety. However that is only one of the possible configurations.”

The new WordPress plugin adds support for the Speculation Rules API. The Mozilla developer pages, a great resource for HTML technical understanding describes it like this:

“The Speculation Rules API is designed to improve performance for future navigations. It targets document URLs rather than specific resource files, and so makes sense for multi-page applications (MPAs) rather than single-page applications (SPAs).

The Speculation Rules API provides an alternative to the widely-available <link rel=”prefetch”> feature and is designed to supersede the Chrome-only deprecated <link rel=”prerender”> feature. It provides many improvements over these technologies, along with a more expressive, configurable syntax for specifying which documents should be prefetched or prerendered.”

Advertisement

See also: Are Websites Getting Faster? New Data Reveals Mixed Results

Performance Lab Plugin

The new plugin was developed by the official WordPress performance team which occasionally rolls out new plugins for users to test ahead of possible inclusion into the actual WordPress core. So it’s a good opportunity to be first to try out new performance technologies.

The new WordPress plugin is by default set to prerender “WordPress frontend URLs” which are pages, posts, and archive pages. How it works can be fine-tuned under the settings:

Settings > Reading > Speculative Loading

Browser Compatibility

The Speculative API is supported by Chrome 108 however the specific rules used by the new plugin require Chrome 121 or higher. Chrome 121 was released in early 2024.

Browsers that do not support will simply ignore the plugin and will have no effect on the user experience.

Check out the new Speculative Loading WordPress plugin developed by the official core WordPress performance team.

Advertisement

How Analytics Handles Prerendering

A WordPress developer commented with a question asking how Analytics would handle prerendering and someone else answered that it’s up to the Analytics provider to detect a prerender and not count it as a page load or site visit.

Fortunately both Google Analytics and Google Publisher Tags (GPT) both are able to handle prerenders. The Chrome developers support page has a note about how analytics handles prerendering:

“Google Analytics handles prerender by delaying until activation by default as of September 2023, and Google Publisher Tag (GPT) made a similar change to delay triggering advertisements until activation as of November 2023.”

Possible Conflict With Ad Blocker Extensions

There are a couple things to be aware of about this plugin, aside from the fact that it’s an experimental feature that requires Chrome 121 or higher.

A comment by a WordPress plugin developer that this feature may not work with browsers that are using the uBlock Origin ad blocking browser extension.

Download the plugin:
Speculative Loading Plugin by the WordPress Performance Team

Read the announcement at WordPress
Speculative Loading in WordPress

Advertisement

See also: WordPress, Wix & Squarespace Show Best CWV Rate Of Improvement

Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
Continue Reading

Trending

Follow by Email
RSS