At WP Travel Engine, we know how crucial speed is for your travel agency website. A faster site not only provides a better experience for your visitors but also boosts your search engine rankings. 

That’s why we’ve made some significant enhancements to the latest WP Travel Engine version 6.0.4. This update focuses on optimizing speed both in the core plugin and offering tools for you to improve your website’s performance.

In this article, we’ll explore the changes we’ve made, introduce the new features available to you, and share speed test results that demonstrate the impact of these optimizations.

Performance Optimization: What’s New

1. Optimized Loading Feature 

One of the most significant improvements we’ve made in the latest version of WP Travel Engine is the Optimized Loading feature. This feature intelligently loads assets only when needed, leading to noticeably faster loading times.

Here’s a closer look at what this feature includes:

Reduced Network Requests 

Previously, numerous network requests were contributing to slower page load times. 

With Optimized Loading, only essential resources are loaded, drastically reducing unnecessary network requests and speeding up your site.

Webpack Configuration 

To further boost performance, we’ve leveraged Webpack to bundle only the required resources into a single file.

Here’s how we’ve minimized the number of files:

 1. Custom Bundle Entry Points

We’ve created separate bundles for different plugin functionalities, allowing for modular loading.

This approach ensures that only the necessary code is loaded for each feature, reducing the overall bundle size on any page.

2. Chunking and Dynamic Filenames

Our output configuration now uses chunkFilename and dynamic filenames, splitting the code into smaller chunks and naming them based on content or entry point. 

This not only improves caching efficiency but also reduces the need to reload unchanged code across various plugin features.

3. Separate Configuration for Bundles

We’ve developed specific configurations for bundling the single-trip and trip-booking-modal scripts. 

By handling these scripts separately, possibly with different rules or output paths, the plugin is further optimized for specific use cases.

4. Babel Loader for Modern JavaScript

Additionally, we’ve implemented the babel-loader with presets like @babel/preset-env and @babel/preset-react.

This compiles modern JavaScript and JSX into a format compatible with older browsers, ensuring the bundle is optimized for performance and compatibility.


How to Enable Optimized Loading

These enhancements will take effect on your website only when you enable the Optimized Loading feature. Here’s how to do it:

  • Go to your WordPress Dashboard.
  • Navigate to WP Travel Engine > Settings.
  • Click on the Performance tab.
  • Under the General section, you’ll find the Optimized Loading option. Enable it.
  • Click Save to apply your changes.

2. Lazy Loading Feature

In the latest version, we’ve introduced lazy loading, a technique that ensures your website loads content only when it’s needed. 

This approach minimizes initial load times and reduces resource usage, leading to a smoother and faster user experience. 

This technique is now implemented for both images and maps.

1. Map Lazy Loading

We’ve implemented lazy loading for maps using the IntersectionObserver API. This technology detects when the map container is about to enter the viewport and loads the map iframe only at that moment. 

This delays resource-intensive tasks, improving overall page load performance.

2. Image Lazy Loading

Similarly, we’ve integrated lazy loading for images using the vanilla-lazyload package. 

This script delays the loading of images until they approach the viewport, which cuts down on initial page load time and conserves bandwidth.


How to Enable Lazy Loading

These enhancements will take effect on your website only when you enable the Lazy Loading feature. Here’s how to do it:

  • Go to your WordPress Dashboard.
  • Navigate to WP Travel Engine > Settings.
  • Click on the Performance tab.
  • Under the General section, you’ll find the Lazy Loading option. Enable it.
  • You’ll then have the option to enable Map Lazy Loading and Image Lazy Loading. Turn on both options according to your needs.
  • Click Save to apply your changes.

3. Splide Integration for Slider

We’ve replaced the Owl Carousel with Splide across the plugin, as Owl Carousel was hurting page speed.

Splide is a lighter and faster alternative, which contributes to the overall speed improvements we’ve made.

Speed Test Results

To give you a clear picture of how these optimizations are performing, we conducted speed tests using three popular tools: Pingdom, GTMetrix, and Speed Vitals.

We conducted tests under three scenarios, comparing WP Travel Engine v6.0.4 and WP Travel Engine v6.0.5 across three different themes: Twenty Twenty-Three, Travel Monster, and Travel Agency.

Note: The following tests are done without any caching plugins installed. When you install caching plugins such as WP Rocket, FlyingPress, Perfmatters or any other, your website score will be higher.

Here are the results before and after implementing the optimizations:

1. Twenty Twenty-Three Theme

MetricWP Travel Engine (6.0.4)WP Travel Engine (6.0.5)
Number of Requests6331
Number of JS4418
Number of CSS54
Mobile Speed (PageSpeed Insights)6168
Desktop Speed (Page Speed Insights)8691

Pingdom Test

Pingdom Test WPTE v6.0.4 Default Theme
Pingdom Test WPTE v6.0.4 – Default Theme
Pingdom Test WPTE v6.0.5 Default Theme
Pingdom Test WPTE v6.0.5 – Default Theme

GTMetrix Test

GTmetrix Comparison Default Theme
GTmetrix Comparison – Default Theme

Speed Vitals test

Speed Vitals Test WPTE v6.0.4 Default Theme
Speed Vitals Test WPTE v6.0.4 – Default Theme
Speed Vitals Test WPTE v6.0.5 Default Theme
Speed Vitals Test WPTE v6.0.5 – Default Theme

2. Travel Monster Theme

MetricWP Travel Engine (6.0.4)WP Travel Engine (6.0.5)
Number of Requests6839
Number of JS4520
Number of CSS77
Mobile Speed (PageSpeed Insights)4950
Desktop Speed (Page Speed Insights)7078

Pingdom Test

Pingdom Test WPTE v6.0.4 Travel Monster
Pingdom Test WPTE v6.0.4 – Travel Monster Theme
Pingdom Test WPTE v6.0.5 Travel Monster
Pingdom Test WPTE v6.0.5 – Travel Monster Theme

GT Metrix Test

GTmetrix Comparison Travel Monster
GTmetrix Comparison – Travel Monster Theme

Speed Vitals Test

Speed Vitals Test WPTE v6.0.4 Travel Monster
Speed Vitals Test WPTE v6.0.4 – Travel Monster Theme
Speed Vitals Test WPTE v6.0.5 Travel Monster
Speed Vitals Test WPTE v6.0.5 – Travel Monster Theme

3. Travel Agency Theme

MetricWP Travel Engine (6.0.4)WP Travel Engine (6.0.5)
Number of Requests7845
Number of JS5123
Number of CSS87
Mobile Speed ( PageSpeed Insights )3757
Desktop Speed( Page Speed Insights )8790

Pingdom Test

Pingdom Test WPTE v6.0.4 Travel Agency
Pingdom Test WPTE v6.0.4 – Travel Agency Theme
Pingdom Test WPTE v6.0.5 Travel Agency
Pingdom Test WPTE v6.0.5 – Travel Agency Theme

GTMetrix Test

GTmetrix Comparison Travel Agency Theme
GTmetrix Comparison – Travel Agency Theme

Speed Vitals Test

Speed Vitals Test WPTE v6.0.4 Travel Agency Theme
Speed Vitals Test WPTE v6.0.4 – Travel Agency Theme
Speed Vitals Test WPTE v6.0.5 Travel Agency Theme
Speed Vitals Test WPTE v6.0.5 – Travel Agency Theme

Note: While there are some significant improvements in the plugin, our team will also work on optimizing all our travel themes, which will help to improve the speed further.


Further, we ran some in-depth benchmarks on GTMetrix to evaluate our site’s performance. These tests focus on critical metrics like 

  • Grade
  • Performance Scores
  • Structure Scores
  • Largest Contentful Paint
  • Cumulative Layout Shift
  • Page Sizes
  • Request Counts and 
  • Total Blocking Time.

1. Twenty Twenty-Three Theme

GTmetrix Grade & Performance Scores Default Theme
GTmetrix Grade & Performance Scores – Default Theme
Structure Scores & Largest Contentful Paint Default Theme
Structure Scores & Largest Contentful Paint – Default Theme
Total Blocking Time & Cumulative Layout Shift Default Theme
Total Blocking Time & Cumulative Layout Shift – Default Theme
Page Sizes & Request Counts Default Theme
Page Sizes & Request Counts – Default Theme

2. Travel Monster Theme

GTmetrix Grade & Performance Scores Travel Monster Theme
GTmetrix Grade & Performance Scores – Travel Monster Theme
Structure Scores & Largest Contentful Paint Travel Monster Theme
Structure Scores & Largest Contentful Paint – Travel Monster Theme
Total Blocking Time & Cumulative Layout Shift Travel Monster Theme
Total Blocking Time & Cumulative Layout Shift – Travel Monster Theme
Page Sizes & Request Counts Travel Monster Theme
Page Sizes & Request Counts – Travel Monster Theme

3. Travel Agency Theme

GTmetrix Grade & Performance Scores Travel Agency Theme
GTmetrix Grade & Performance Scores – Travel Agency Theme
Structure Scores & Largest Contentful Paint Travel Agency Theme
Structure Scores & Largest Contentful Paint – Travel Agency Theme
Total Blocking Time & Cumulative Layout Shift Travel Agency Theme
Total Blocking Time & Cumulative Layout Shift – Travel Agency Theme
Page Sizes & Request Counts Travel Agency Theme
Page Sizes & Request Counts – Travel Agency Theme

Conclusion

These updates bring enhanced speed and improved efficiency to your website, ensuring it loads faster and runs smoother.

We’re committed to continually improving the user experience of WP Travel Engine.

To take full advantage of these improvements, make sure your plugin is always up to date. 

We value your feedback and are here to support you every step of the way.