How to setup and use Single Page Application plugin

Md Rakib
Md Rakib

Modern websites need more than just good content and design. Loading speed and smooth navigation play an equally important role in delivering a great browsing experience. When visitors navigate between posts, categories, or archive pages, traditional full-page reloads can interrupt the reading experience, especially on mobile devices.

The Probha Blogger Template includes a built-in Single Page Application (SPA) plugin that transforms traditional Blogger navigation into a smoother, app-like experience. It loads eligible internal pages dynamically without requiring a complete browser reload. Additionally, its optional Fast Mode makes navigation even quicker by intelligently reusing previously loaded pages and preparing links before visitors open them.

How to configure and use the Single Page Application plugin in Probha Blogger Template

What Is a Single Page Application?

A Single Page Application (SPA) is a modern browsing approach that updates page content without performing a complete browser refresh. Instead of loading an entirely new page every time a visitor clicks a link, it retrieves the requested content and updates the displayed page seamlessly.

Probha brings this experience to Blogger through its built-in SPA plugin. When a visitor opens an eligible internal link, the plugin loads the destination page and updates the website content while keeping navigation continuous.

This means visitors can move between articles, labels, search results, and other supported pages without repeatedly experiencing a full-page reload.

Benefits of the Probha SPA Plugin

The SPA plugin offers several improvements to the overall browsing experience:

  • Smoother navigation: Browse supported internal pages without full browser reloads.
  • Faster transitions: Reduce unnecessary loading during internal navigation.
  • Optional intelligent caching: Fast Mode can reuse previously loaded pages for quicker navigation.
  • Automatic link preparation: Eligible links can be prepared before visitors click them.
  • Background content updates: Previously loaded static pages can be checked for newer content.
  • Browser history support: The Back and Forward buttons continue to work normally.
  • Mobile-friendly experience: Enjoy smoother browsing on smartphones and other devices.

Keep in mind that SPA primarily improves navigation and perceived loading speed. It does not automatically optimize images, reduce third-party scripts, or improve the initial page load.

Where to Find the SPA Plugin

The SPA functionality is already integrated into the Probha Blogger Template. You do not need to install additional libraries or manually add JavaScript code.

To access its settings:

  1. Sign in to your Blogger Dashboard.
  2. Navigate to the Layout section.
  3. Locate the Plugins section.
  4. Find the gadget labeled Single Page App or SPA.
  5. Open the gadget to configure its settings.

How to Enable SPA Navigation

The SPA plugin uses a simple JSON configuration. Its status property controls whether the navigation feature is enabled.

To activate SPA navigation, use the following configuration:

{
  "status": true
}

Save the gadget settings. Once enabled, eligible internal links will use dynamic navigation instead of triggering a complete browser reload.

Understanding SPA Configuration Options

The plugin provides two main configuration properties:

1. The status Property

This is the main switch for the SPA navigation feature.

Enable SPA:

{
  "status": true
}

Disable SPA:

{
  "status": false
}

When disabled, the plugin stops handling internal navigation, allowing the browser to use its standard page-loading behavior.

2. The fastMode Property

Fast Mode enables additional browsing optimizations on top of regular SPA navigation. It intelligently reuses previously loaded pages, prepares eligible links in advance, and keeps cached static content updated.

Enable Fast Mode:

{
  "status": true,
  "fastMode": true
}

Disable Fast Mode:

{
  "status": true,
  "fastMode": false
}

When Fast Mode is disabled, SPA navigation continues to work normally, but the additional caching, link preparation, and background update features remain inactive.

Supported Page Navigation

The SPA engine is designed to handle the main content pages of a Blogger website.

Some destinations are intentionally excluded from dynamic navigation to preserve normal browser behavior.

  • External links: Open normally in the browser.
  • New tab links: Links with target="_blank" are excluded.
  • Download links: Links with the download attribute are excluded.
  • Email and telephone links: mailto: and tel: links are excluded.
  • Modified clicks: Ctrl-click, middle-click, and similar browser actions are preserved.

Things to Keep in Mind

Although SPA navigation works automatically for eligible internal links, some third-party widgets and scripts may depend on traditional full-page loading events.

Since SPA navigation does not perform a complete browser reload, those scripts may need their own initialization logic after a page transition. If a third-party feature does not work correctly after navigation, check its compatibility with dynamic page loading.

Also remember that cached content may briefly be older than the latest published version. Fast Mode checks static pages for updates in the background, helping keep content fresh without interrupting navigation.

Troubleshooting Common Issues

If SPA navigation does not work as expected, consider the following steps:

  1. Open Blogger Dashboard and navigate to Layout → Plugins → Single Page App.
  2. Verify that "status": true is present in the JSON configuration.
  3. If you want the additional browsing optimizations, make sure "fastMode": true is enabled.
  4. Check the configuration for missing quotation marks, commas, or curly braces.
  5. Clear the browser cache and test the blog again.
  6. Check the browser console for errors caused by incompatible third-party scripts.

If you experience compatibility issues, try disabling Fast Mode first. If necessary, disable the SPA plugin entirely to restore traditional browser navigation.

Conclusion

The Single Page Application plugin in the Probha Blogger Template provides a modern navigation experience without requiring complicated manual setup. It dynamically loads eligible internal pages, supports browser history, and offers an optional Fast Mode with intelligent page reuse, automatic link preparation, and background content updates.

For a simple and lightweight SPA experience, enabling status is sufficient. If you want additional navigation optimizations, enable fastMode as well.

With these features, Probha makes traditional Blogger navigation feel smoother, faster, and more like browsing a modern web application.

About The Author

You may like these posts

No Responses yet

Post a Comment