PHPackages                             junohamburg/kirby-reload-on-save - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. junohamburg/kirby-reload-on-save

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

junohamburg/kirby-reload-on-save
================================

Kirby Reload On Save

1.0.4(1y ago)293.4k↓33.3%MITJavaScript

Since May 8Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/junohamburg/kirby-reload-on-save)[ Packagist](https://packagist.org/packages/junohamburg/kirby-reload-on-save)[ RSS](/packages/junohamburg-kirby-reload-on-save/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Kirby Reload On Save
====================

[](#kirby-reload-on-save)

This plugin for Kirby 3, 4 and 5 automatically reloads the frontend when content changes are saved in the panel.

It uses the [Broadcast Channel API](https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API) to communicate between panel and frontend. There is no build tool or `npm install` necessary, so the plugin can be used both in your local development and your production environment.

    preview.mp4    Clicking "Save" or using CMD+S / CTRL+S saves the content and reloads the frontend.

Installation
------------

[](#installation)

### Download

[](#download)

Download and copy this repository to `/site/plugins/kirby-reload-on-save`.

### Composer

[](#composer)

```
composer require junohamburg/kirby-reload-on-save

```

### Git submodule

[](#git-submodule)

```
git submodule add https://github.com/junohamburg/kirby-reload-on-save.git site/plugins/kirby-reload-on-save

```

Setup
-----

[](#setup)

Enable the plugin in your config using in the `ready` [option](https://getkirby.com/docs/reference/system/options/ready) shown below. That way, the plugin is only active when the user is logged in and it does not interfere with the Kirby cache.

**site/config/config.php**

```
