Connect with us

WORDPRESS

WordPress 5.9 May Boost a Core Web Vitals Metric by Up to 33%

Published

on

wordpress core web vitals 60f15666d5c1b sej

WordPress published an article in their developer section proposing to refine WordPress’ default lazy loading behavior. Testing revealed that the proposed change improved a Core Web Vitals performance metric by as much as 33%.

Proposal to Improve Core Web Vitals in WordPress

The proposal states that fine grain control of the lazy loading attribute belongs in the hands of theme developers.

That said, it was found that by refining how the lazy loading is added by default results in significant improvements in the Core Web Vitals metric called Largest Contentful Paint.

This is how the proposal describes the improvement:

“Instead of lazy-loading all images and iframes by default, the very first content image (also considering featured images) or content iframe should not be lazy-loaded.

This is a more sensitive default than what the current implementation uses, that on average and at scale will result in better LCP performance out of the box, while keeping necessary bandwidth low.”

Lazy Loading and Largest Contentful Paint

Lazy loading is a way to speed up the perceived download of a page by delaying the download of web page elements such as images and iframes that are not needed at the moment.

Advertisement

Using lazy loading, elements like images that are not viewable in the site visitor’s browser screen can be delayed by using an HTML attribute called the loading attribute.

An image is a web page HTML element.

An HTML attribute is code that modifies an HTML element, like an image.

The loading attribute modifies the image, in this case, by telling the browser to delay downloading it.

The loading attribute tells the browser to delay downloading an image, freeing the browser to download more important page elements that are immediately viewable to the website visitor.

This makes the page interactive faster for the site visitor.

Advertisement

Largest Contentful Paint (LCP) measures how fast image and other elements download in the site visitors viewport (the browser screen that the visitor sees).

An image is usually coded in HTML like this:

<img src="example.jpg" alt="example text">

Adding lazy loading is a simple matter of adding the lazy load HTML attribute:

<img src="example.jpg" alt="example text" loading="lazy">

How WordPress 5.9 May Improve Largest Contentful Paint

The developer who published the proposal to improve LCP noted that as of WordPress 5.5 the core code added the lazy loading attribute by default to all images and iframes.

But that’s not ideal because the images at the top of the page, like logos and featured images, need to download in order for the web page to become usable.

WordPress implemented lazy loading like this because it had no way to accurately exclude the most important images from receiving the lazy loading attribute.

Advertisement

The reason is because all themes are coded differently and this kind of granular exclusion is best done by the theme developers for that reason.

While the current WordPress implementation of default lazy loading was not ideal, adding lazy loading in this manner is a clear improvement over not adding the loading attribute at all.

What’s being proposed represents a clear improvement as the test results listed below demonstrate.

How WordPress Will Improve Largest Contentful Paint

What the WordPress developer team is proposing is to exclude adding the lazy loading attribute to the first image or iframe in the code.

The developer tested this method on the top 50 most popular WordPress themes and discovered that adding it to the first image or iframe element provided an average improvement in the LCP Core Web Vitals score by an average of 7%.

The developer next tested how well LCP improved by adding lazy loading to two elements. The performance gains dropped by an average of 2%, making it clear that excluding lazy loading from more than one element did not improve LCP any better.

Advertisement

These are some of the findings:

“Omitting the first content image from being lazy-loaded resulted in a median LCP improvement of 7% (1,877ms compared to 2,020ms with current core behavior) and a median image bytes increase of 0% (368KB compared to 369KB with current core behavior). → Omitting the first content image clearly results in an LCP improvement while not noticeably regressing on image bytes saved.

Omitting the first two content images from being lazy-loaded resulted in a median LCP improvement of 5% (1,927ms compared to 2,020ms with current core behavior) and a median image bytes increase of 2% (378KB compared to 369KB with current core behavior). → Omitting the first two content images produces worse results for both metrics than only omitting the first one, i.e. it is better to only skip lazy-loading for the first content image, and therefore no additional tests with larger numbers of images not being lazy-loading are needed.”

New WordPress Lazy Loading Test Results

  • 5% of themes in the test group scored LCP scores that were 10% worse to as high as 21% worse.
  • 42% of the themes improved LCP scores from 10% to as high as a 33% better.
  • Testing revealed that the benefits were better for the majority of the tested themes.

According to the WordPress proposal:

“While the median LCP improvement across all themes is only 7%, there are larger notable wins for a significant number of themes, while notable losses are minimal.”

Googler Makes a Proof of Concept Plugin

A WordPress Core committer created a proof of concept (POC) patch in plugin form, presumably for debugging purposes and published it on GitHub.

It’s not an official WordPress plugin release so it’s not advisable to rush out and install it.

Official plugin releases are posted in the WordPress plugin repository.

When Will Refined Lazy Loading Arrive?

The timeline for the improved lazy loading behavior is currently set for WordPress 5.9.

Advertisement

WordPress 5.9 is currently set to be released in December 2021.

The proposal for the improved lazy loading feature is currently undergoing discussion and has so far met with a positive response in the comments.

So unless a currently unforeseen issue arises, it is very possible that improved Largest Contentful Paint scores may be coming to WordPress sites later this year.

Citations

Official WordPress Proposal Announcement
Refining WordPress Core’s Lazy-loading Implementation

WordPress GitHub Page for Lazy Loading Improvement
Omit Lazy-loading Attribute on First Content Image/iframe

Searchenginejournal.com

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

WORDPRESS

5 Hidden Features of WordPress.com – WordPress.com News

Published

on

By

5 Hidden Features of WordPress.com – WordPress.com News

Whether you’re a blogger, a developer, or fall somewhere between, you’re likely to discover something new and useful in this video.

Isn’t it amazing how you can learn new things about someone, even after years of knowing them? That’s how Jamie Marsland has felt in the last few weeks while diving deeper into WordPress.com’s capabilities. In today’s Build and Beyond video, he shares five incredible features built right into the platform that aren’t as well known as they should be. Whether you’re a blogger, a developer, or fall somewhere between, you’re likely to discover something new and useful. 

Ready to build on WordPress.com? Start a free trial today:


Join 4.7M other subscribers

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

WORDPRESS

New WordPress.com Themes for March 2024 – WordPress.com News

Published

on

By

New WordPress.com Themes for March 2024 – WordPress.com News

Five of our favorite new themes.

The WordPress.com team is always working on new design ideas to bring your website to life. Check out the latest themes in our library, including great options for small businesses, sports fan, nostalgic bloggers, and more.


Feelin’ Good is a vibrant (to say the least!) blog theme with a bold vaporwave aesthetic. Its nostalgic atmosphere pays homage to the daring, over-the-top visual art and advertisements of the ’80s and early ’90s. We’ve combined a lot of elements that shouldn’t work together, but do. If you’re looking for a dynamic, attention-grabbing, eye-popping visual feast of a theme, try Feelin’ Good.

Advertisement

Click here to view a demo of this theme.


1711610762 938 New WordPresscom Themes for March 2024 – WordPresscom News

Low Fi is a simple blog theme featuring a narrow column layout that’s optimized for seamless browsing on mobile devices. With six style variations, you’re sure to find a palette you’re drawn to. Taking inspiration from the lo-fi beats music scene, the theme’s design cues, such as the square header image, offer a nod to album artwork.

The overall aesthetic is deliberately understated, with each element—from the muted color schemes to the textured background—crafted to evoke a sense of nostalgia and warmth.

Click here to view a demo of this theme.


1711610763 567 New WordPresscom Themes for March 2024 – WordPresscom News

Cakely is the ultimate WordPress theme designed specifically for passionate bakers, cake enthusiasts, and dessert lovers. Tailored for small businesses aiming to shine in the world of sweets, Cakely effortlessly combines style and functionality to showcase mouthwatering creations. Its vibrant pink color scheme exudes joy while maintaining a classy, clean layout with easy navigation. This theme ultimately strikes the perfect balance between professionalism and playfulness, making it an ideal choice for showcasing your delicious masterpieces.

Click here to view a demo of this theme.


New WordPresscom Themes for March 2024 – WordPresscom News

Treehouse is a carefree, fun, and friendly theme ideal for Woo stores selling children’s products. With its unlimited customization options, Treehouse enables you to set up an online shop with just a few clicks. Utilizing a soft color palette, playful design details, and simplified layouts, your site will attract a wide range of customers, from young parents to over-the-moon grandparents. This theme is fully responsive and cross-browser compatible.

Click here to view a demo of this theme.


New WordPresscom Themes for March 2024 – WordPresscom News

Major League Baseball’s 2024 season kicks off on Thursday, March 28. What better way to show your home team the love it deserves than with a baseball-themed fan site! With a somewhat old-school layout, this theme evokes some of the classic sports sites of the ’90s, back before fantasy leagues took over. The header and accent colors are customizable, ensuring that your favorite crew is properly saluted.

Click here to view a demo of this theme.

Advertisement

To install any of the above themes, click the name of the theme you like, which brings you right to the installation page. Then click the “Activate this design” button. You can also click “Open live demo,” which brings up a clickable, scrollable version of the theme for you to preview.

Premium themes are available to use at no extra charge for customers on the Explorer plan or above. Partner themes are third-party products that can be purchased for $79/year each.

You can explore all of our themes by navigating to the “Themes” page, which is found under “Appearance” in the left-side menu of your WordPress.com dashboard. Or you can click below:


Join 4.7M other subscribers

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

WORDPRESS

How to Get Started: Investigating Payment Gateways Online

Published

on

By

How to Get Started: Investigating Payment Gateways Online

When investigating a website, app, or online shop, one of the key questions you may need to answer is ‘How are they making money?’ 

Investigating the financial transactions of an organisation can reveal details about its connections and funding. Furthermore, if the website or app is engaged in illicit transactions, tracing the payment gateway can help achieve accountability by identifying what sites they are using to earn money.   Bellingcat has looked into the payment processors in previous investigations on far-right merchandise, Britain’s far-right influencers, and non-consensual deepfake pornography.

Credit: Nicolas Guyonnet / Hans Lucas via Reuters Connect

Payment gateways are a technology that takes a customer’s payment information, checks it with their financial institution, verifies that the transaction is legitimate, and then completes the transaction. As explained by Forbes, online stores need a payment gateway to be able to facilitate payments. Companies including PayPal, Stripe, and Square are commonly used as a payment gateway for online purchases.

Most mainstream payment gateways (like Stripe and PayPal) prohibit their services from being used in illegal transactions including the sale of illegal drugs, the promotion of hate or racial intolerance, and non-consensual adult content. Finding evidence that someone is violating the Terms of Services of these companies – and how they are doing so- can lead to the closure of loopholes and accounts. It can also provide additional information about an organisation’s revenue streams. 

It is nearly impossible to conduct online transactions without a payment gateway. So it should be possible to find the payment gateway of an organisation earning money, even if it is not obvious at first. One resource that is extremely useful is Chrome’s built- in developer tools (other browsers also have similar tools). Below we’ll provide an overview of the tools to use and questions to ask when scrutinising payment systems. 

How are they Taking Payment?

For online transactions, you’ll typically see websites accept traditional forms of payment including credit cards, debit cards and, more recently, cryptocurrency. Since cryptocurrency is not subject to the same regulations as traditional financial systems, cryptocurrency is often used to process payments for illegal services. Since this does not need to be ‘hidden’, websites will usually disclose which currency they accept and how to transfer funds into a crypto wallet. There are other ways you can track funding through cryptocurrency, as discussed in this guide.

Advertisement

If none of the above apply?  Other sites that use a payment gateway will accept money directly via credit card payment,  bank transfer, or through peer-to-peer payment apps (i.e., PayPal, Cash App, Zelle). If this is the case, you should be able to identify the payment gateway being used. In the case of the peer-to-peer apps, these services may be used by businesses and not just individuals’ transactions. They also require a bank account or credit card to use them. It is helpful to view transaction options on both the mobile app and web browser, in case the options differ.  It is also worth checking the currency that payments are being taken in – if it is a US website taking payment in a foreign currency, that can also provide clues. Further, if a website is using different payment gateways depending on the currency, this can lead to additional leads in your investigation. Payment options may also change depending on what IP address you are using. In other words, setting your IP address in the UK and then changing it to the US may result in different payment gateway options.

Where are they Soliciting for Payment?

Organisations may solicit for payment via a website or a messaging app like Telegram. It is important to investigate all avenues where  payment is being requested as each method may provide different clues for your investigation. For example, for some of the AI deep fake services we investigated here we found that companies would accept different payment methods depending on how you tried to pay – via their website, via a web browser or via Telegram. Sellers may want to direct their users away from their website to more private forums such as Telegram to facilitate transactions and avoid detection.

Is the Organisation Trying to Hide How Payment is Taken?

For some sellers, using a mainstream payment gateway may  violate the terms of service of that company. To be able to use their services, these sellers may  try to hide the nature of their goods from the payment gateway company. 

A Walk Through Example

Some sites may not show their payment options without signing up first. 

This was the case with the Nudify.VIP site which offers non-consensual AI Deep Fake pornography.  

Initially, the website states that their services are free. 

Advertisement

“With our service you can undress any person in a photo absolutely FREE!” 

However, this is misdirection, as you are then prompted to log in or sign up. Only once you create an account do you discover that you need to pay to access the service and how much it costs.

After creating an account, we were presented with two options to pay, by card or crypto. 

You are then presented with an option to pay via crypto or via credit card, but it does not yet say what cards they accept or what payment gateway they use. 

Clicking through to ‘Go To Payment’ gives us a new screen that lets the user pay via credit card (ie MasterCard, Visa), a US Bank account (ie Wells Fargo, USAA), or through Cash App. 

There is no indication of the payment gateway they are using, but if we look at the URL on the checkout page, we can see that it no longer says that we are on a Nudify.VIP domain. This is a clue that users are being directed to the checkout page through another website. This method is used to hide the true source of purchases from payment gateway providers. There’s another clue  that the domain has changed- in the fine print at the bottom of the checkout page. Via the Checkout Page using either Cash App or credit card options, it discloses:

“By providing your card information, you allow aiphotos.art to charge your card for future payments in accordance with their terms.”

Advertisement

This is another clue that the payment gateway does not know this belongs to an AI Deep fake service Nudify.VIP.

Three checkout options for Nudify.VIP: credit card, US bank account, and Cash App.

Use Browser Developer Tools to Investigate Further

All modern browsers have some form of built-in developer tools. You can search online for your specific browser (e.g. Firefox, Chrome, Safari). If you are in Chrome, you can right-click anywhere on the screen to get a menu and an option to ‘Inspect.’ You can also use keyboard shortcuts which can vary between MacOS or Windows. For Windows, you can click CTRL + SHIFT + I and on MacOS you can click Option + Command + I on your keyboard. Any of these actions will open the developer tools which allows you to  view the code of a webpage (such as HTML, CSS, and Javascript). This should appear on the right-hand side of your screen. While developer tools are designed to check for bugs or errors in a website, you can use them in your investigation.

There should be a list of tabbed options for you to view on the top menu bar. Clicking on ‘Sources’ shows you all the resources that the website is using. 

This is a good place to start to look for any clues about what piece of code is being used in the checkout process.  In the example below, one of the listed sources on the page is titled ‘js.stripe.com.’



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