Back

BLOG • DIGITAL INSIGHTS

Page Speed Stats Shortcut in Sitefinity Page Grid

Checking Google PageSpeed after every Sitefinity publish normally requires several manual steps. This post shows how to add a custom DynamicColumnElement to the pages grid so you get a direct PageSpeed link for every page right in the Sitefinity backend.

Sitefinity CMS

After publishing a page in Sitefinity, you often need to check whether anything broke. One thing we need regularly as a Sitefinity partner is to verify whether a page performs well in Google PageSpeed - which normally requires several manual steps.

Instead, by adding the script below you get a direct link in the Sitefinity backend pages grid. Click it, and the page opens straight in Google PageSpeed.

The Client Template Code

How to Set It Up

  1. Go to Administration - Settings - Advanced - ContentView - Controls - FrontendPages - View Modes - TreeTable - Columns
  2. Click Create and select DynamicColumnElement
  3. Add the code above in the Client Template field
  4. Enter Google Page Speed in the TitleText column
  5. Fill in the remaining properties as desired - for example, you can add CSS classes for the item and header to style the column. The Bound Property Name field can be left empty.
  6. Save

You should now see the new column in the pages grid, with a "Google Page Speed" link for each page.

Things to Note

  • If you just published the page, Sitefinity will need to recompile it and warm up the cache first - so the initial result may appear slower than usual.
  • Google PageSpeed caches results for a page for 30 seconds, which can occasionally cause confusion if you test immediately after a change.

Read More

Explore more insights and case studies from our team.