Frontity release: Beta version of Google Ad Manager package & auto prefetch

New features

  • First beta version of the Google Ad Manager package (previously DoubleClick For Publishers). It allows users to connect their ads from this server in a really easy way, just including the information in the frontity.settings.js file.

    Here we have a quick demo:

  • Introducing auto prefetching to the <Link /> component, which makes the next page load instant. Thanks @nicholasio.oliveira for the Pull Request! There are four supported modes:

    • “in-view”: Prefetch links that are currently visible in the viewport.
    • “all”: Prefetches all internal links on the page.
    • “hover”: Prefetches links on hover.
    • “no”: No auto prefetch.

    Here we have a quick demo:

We released a first beta version of the WordPress comments package, which will allow users to retrieve and post comments of a specific post in a really easy way, but we have encountered some errors in the action to post new comments, so we’re going to work on fixing them and we’ll probably release a new version next week.

Bug fixes

  • Fix a bug that causes a server crash and 500 errors to be returned if a URL contained a partly known entity. E.g. /undefined/2020/some-interesting-post. #366
  • Fix a bug where requesting posts for a date that is outside of the calendar range causes a 500 error instead of a 404. #513
  • Fix for package names that start with a number, like @123/package . #524
  • Add @frontity/core as a peer dependency of frontity to make sure that people get a warning when they update frontity if they have not updated @frontity/core as well. #516
  • Fix html2react parser support for some SVG attributes that contain dashes and colons. Thanks @orballo for the Pull Reuqest! #530
  • Reword the README to specify that users need to install the Rest API Head Tags WP plugin before using the frontity head-tags package. #512

Next release

For the next release, we’ll fix the problems with the action to post new comments and release the first beta version of the WordPress comments package. We expect to do so next week.


Packages Changelog


@frontity/[email protected]

Minor Changes

  • Introducing auto prefetching to the <Link /> component.There are four supported modes:

    • “in-view”: Only prefetch links that are currently visible in the viewport.
    • “all”: Prefetches all internal links on the page.
    • “hover”: Prefetches links on hover.
    • “no”: No auto prefetch.The prefetch mode should be set in state.theme.autoPrefetch .

Patch Changes


@frontity/[email protected]

Minor Changes

Patch Changes


@frontity/[email protected]

Patch Changes


[email protected]

Patch Changes


@frontity/[email protected]

Patch Changes


@frontity/[email protected]

Minor Changes


@frontity/[email protected]

Patch Changes

  • c219fb63 #512 Thanks @michalczaplinski! - Reword the README to specify that users need to install the Rest API Head Tags WP plugin before using the frontity head-tags package

@frontity/[email protected]

Patch Changes

  • c062b39c #530 Thanks @orballo! - Fixes html2react parser support for some SVG attributes that contain dashes and colons
2 Likes

I’m really excited about this release, specially about the auto-prefetch feature. I know it’s a really simple feature, but it can have a huge impact in the final UX while making it really simple for the Developers. Thanks a lot for your contribution @nicholasio.oliveira :blush:

P.d. @SantosGuillamot , great job with the demo videos I think they are a great addition to the release notes.

2 Likes

@SantosGuillamot Good work on these releases explanations and these videos!
They’re very helpful to fully understand the new features released
:clap: :clap::clap::clap::clap:

1 Like

I thought you guys already did prefetch before, how was the site loading so fast before then?

Hey @furrysmile2 the state manager was already fetching by default all the posts of the homepage. What we have released here is the “auto-prefetch” for the Link component, so your React App will be able to auto-prefetch anything behind a Link (including pages, that were not auto-prefetched before).

The twentytwenty-theme already had that feature, but it was included only in that theme. Now it’s available for any Frontity project using the Link component.