Month: January 2019

Do I need another caching plugin when using Pegasaas Accelerator WP?

Do I need another caching plugin when using Pegasaas Accelerator WP?

No, you do not need another caching plugin when you have Pegasaas Accelerator WP installed.

In fact, we recommend disabling any existing optimization plugins such as those responsible for:

  • Caching
  • Minification
  • Deferral of CSS / JavasScript
  • Image Optimization
  • Lazy Loading

Pegasaas Accelerator WP fully optimizes your WordPress website with over 20+ web performance methods and and mechanisms, all in harmony.  If you choose to leave other optimization plugins installed in parallel to Pegasaas Accelerator WP, it may cause a conflict with our functionality that was designed to work together.

Are optimizations performed on the page when logged in to WordPress as a user/administrator?

Are optimizations performed on the page when logged in to WordPress as a user/administrator?

Optimizations are not applied to the page when you are logged in to WordPress.  As optimizations are performed through the Pegasaas API and stored in the plugin cache, on-the-fly optimizations are not performed as the result would be a much longer load time.

Examples of when optimizations are currently not performed:

  • when logged in to WordPress
  • when an e-commerce cookie is present (you have items in your cart)
  • when a query string is appended to the URL (https://www.yourwebsite.com/?argument=value)

There are plans to include Edge Side Includes which would allow for the use of non-cached regions with previously optimized pages in a future version.

If my mobile PageSpeed score is less than 90, what should I do?

If my mobile PageSpeed score is less than 90, what should I do?

The Big Picture

While everything should be done to make a website load as fast as possible, if you have a PageSpeed score of 90/100, you are roughly in the 93rd percentile (93% of websites are slower than yours, and only 7% are faster) based on the information from Google where they state that a score of 100/100 represents the 98th percentile, and 50/100 represents the 75th percentile.

While you may not be considered in the “fast” category, a score of 80/100 still represents the 88th percentile — where you are faster than 88% of other websites.

One Page at a Time

If getting a score of 90/100 or higher is critical to you, and you have already had Pegasaas Accelerator WP optimize your pages, you should consider either targeting the specific pages that are drawing your average score down, or consider deactivating global plugins which may be causing a long load time.

Common Issue

One common element that can cause mobile load times to be higher and subsequent PageSpeed scores to be lower, is the use of third party “analytics” scripts such as “Google Analytics”, “Yandex”, or “Facebook Pixel”.  Also, the use of “tag managers” (such as “Google Tag Manager”) can cause even further load time, as the tag manager must be loaded first, parsed, and then executed.  Once the tag manager has been executed, subsequent analytics scripts are then injected, loaded, parsed and executed accordingly.  When these analytic and tag manager scripts are used in a web page, they can cause the page load time to be increase by 1-5 (or more) seconds.  If load time is important, you should consider reducing the amount of analytics scripts that are used with your site.

Additional Analysis

Beyond that, the Pegasaas Accelerator WP web performance analysis team can be hired to specifically advise on how getting a faster load time can be accomplished.  If you’re interested in hiring the web performance analysis team, please contact them via the Pegasaas.com contact page.

JavaScript Execution Time: what if I am still getting this warning?

JavaScript Execution Time: what if I am still getting this warning?

What is JavaScript execution time?

The Google Developers website covers this topic in great detail, but in short, if you’re still getting this warning, it means you have too much JavaScript being loaded, parsed, and executed in your pages.

Can Pegasaas Accelerator WP handle this?

If you have Pegasaas Accelerator WP installed, minification and deferral of JavaScript, as is recommended by Google, is already implemented.

Resolve the Root Problem

If you already have Pegasaas Accelerator WP installed, you can try to address the root problem of excessive JavaScript execution time by disabling unnecessary plugins, as many plugins add multiple JavaScript files which all contribute to the load, parse and execution time of your web page.

A Possible Manual Solution Advanced

You could also attempt to identify any JavaScript files that may not be needed for initial page load.  For example, if there are plugins in your page which handle a click action for a component that is below-the-fold, then you could lazy load these script files.  To lazy load a script, you can add the file name of the JavaScript resource to the Settings > Lazy Loading > Lazy Load Scripts panel.  Any .js file that you add in this panel will not be loaded, parsed, or executed in the page until the user has begun to scroll down through the page.

Minimize Main-Thread Work: what if I am still getting this warning?

Minimize Main-Thread Work: what if I am still getting this warning?

What is going on here?

This warning indicates that either your DOM (web page) is very large and you have:

  • lots of styles being applied to your page
  • lots of JavaScript that being parsed and executed
  • lots of web fonts — many of which could be web font icon sets

Each of those reasons individually or combined can contributed to the length of the main-thread work.

How to Address

If you are still getting this warning after Pegasaas Accelerator WP has optimized your pages, then it means that there are intrinsic features of your page that cannot be optimized further but are still more than a fast page would contain.

The only solution to this would be to remove plugins or components from your pages that may be contributing to either:

  • excessive style rendering
  • excessive javascript parsing
  • excessive font loading
Serve Images in Next-Generation Formats: what if I am getting this warning?

Serve Images in Next-Generation Formats: what if I am getting this warning?

If you get this warning, and you do not have CDN available and as a feature, you should either enable or activate this feature.  The Pegasaas image CDN automatically serves the WebP next-generation image format to supporting web browsers.

If you already do have the Pegasaas image CDN active and are still getting this warning, it may be that the image that is being flagged as not being served in a next-generation format is likely being injected into your page via JavaScript by your theme or one of your plugins.

Unfortunately at this time, Pegasaas Accelerator is unable to map image locations to the image CDN for image that are injected into the web page via JavaScript.

Avoid an Excessive DOM Size: what if I am getting this warning?

Avoid an Excessive DOM Size: what if I am getting this warning?

As covered by Google, an excessive DOM (Document Object Model AKA web page) can harm your web page performance.  It is recommended that your web page have no more than 1500 nodes, be no more than 32 nested levels deep, or have any parent node that has more than 60 child nodes.

What this basically breaks down to is, if you have a web page that uses an excessively large DOM size, it will take longer to render the page, and run JavaScript on the page.

Without completely redesigning your web page from scratch, you cannot resolve this warning.  Understand that this warning is significant and if you get it for more than one or two pages in your site, you should consider:

  • reducing the amount of widgets / sections within your web pages or page layouts
  • using a simpler web page builder as many page builders add a lot of code bloat
  • using a different theme
  • using a different slider
Properly Size Images: what if I am getting this warning on an optimized page?

Properly Size Images: what if I am getting this warning on an optimized page?

Pegasaas Accelerator WP contains methods which can automatically size your images.  There may be situations, however, where the plugin cannot optimize in-page images such as those that are used as background images, or those images that are injected into the HTML via JavaScript by a theme or plugin.  This typically happens for the mobile PageSpeed score for images that are above-the-fold., as most images are sized for desktop browser resolutions.

If you are still getting this warning, you can identify the image(s) in question and properly size them with the WordPress Media library cropping tools.

A warning if you are going to resize an image through the media gallery: be careful as this may negatively impact the desktop view of your pages.  You may choose to ignore this warning as the potential savings may only be a few hundred milliseconds of overall page load time.

What if my optimized Time-to-Interactive is slow?

What if my optimized Time-to-Interactive is slow?

The Time-to-Interactive metric measures how long it takes for the web page to become “interactive”.  As is recommended by Google, to improve this score, you should defer or remove unnecessary JavaScript work that occurs during page load.

If the optimized time-to-interactive is considered slow, then you can try to

  • Disable any unnecessary plugins which may be be adding JavaScript to your pages.  Once disabling any unnecessary plugins, you will need to clear your optimized pages cache and then re-request a PageSpeed scan.
  • Determine if there are any JavaScript resources that are not necessary for the initial page load, add those file names to the Settings > Lazy Loading > Lazy Load Scripts panel.  Any .js file that you add in this panel will not be loaded and executed in the page until the user has begun to scroll down through the page.
Can you use Autoptimize at the same time as Pegasaas Accelerator WP?

Can you use Autoptimize at the same time as Pegasaas Accelerator WP?

As Pegasaas Accelerator WP includes CSS/JS minification, combination, and deferral as a part of its web performance optimization functionality, and because Pegasaas Accelerator WP contains all of the optimization features that you will need to speed up your website, it is recommended that you do not have the Autoptimize plugin installed in parallel with Pegasaas Accelerator WP.  Running Autoptimize may cause a conflict which could cause your website to not operate as expected.