You can control the WP VR assets, such as scripts and styles, to load only on the pages/posts you want.
Simply follow the steps below
Control WP VR Script And Style Loading On Your Site #
1. Go to the Dashboard > WP VR > Get Started and on the top-right side, click on the Settings tab.

It will take you o the General Setup Options page where you will find all the exclusive settings of WP VR.

2. Look for the options called Enable Script Control and enable it.

Turning it on will ensure that WP VR assets will no longer be loaded in any page on your site.
3. Now, go to the pages/posts where you want to load WP VR assets, seeming the pages where you embedded a virtual tour using WP VR, and copy their URLs.

4. Then go back to the Settings section of WPVR and look for the the option “List of allowed pages to load WP VR scripts“.

One the field, paste the URLs that you just copied with commas between multiple URLs and no spaces.
For example, suppose you have two pages:
- https://mywebsite/test-1
- https://mywebsite/test-2
So here, you have to input them with just commas in between and no spaces.
Just like this:
https://mywebsite/test-1,https://mywebsite/test-2
5. Then click on the Save button below.
And that’s it. Now, WPVR scripts and styles will be loaded only on the pages/posts that you have listed here.
Wenn Sie ein Optimierungs-Plugin verwenden, müssen Sie die optimierten Assets neu generieren.
Angenommen, Sie verwenden das Plugin Autoptimizer, dann sehen Sie hier, wie Sie dies tun können:
Exclude WPVR JS Files From Autoptimizer #
Wenn Sie Autoptimizer verwenden, werden die JS-Dateien des WPVR minimiert und die Tour wird nicht angezeigt.
Daher müssen Sie die Plugin-Ordner vom Autoptimizer ausschließen.
Go to Autoptimizer and under CSS, JS, and HTML section, you’ll see the ‘Exclude scripts from Autoptimize:‘ field.

If you’re using the free version of WPVR, add a comma (,) and include wp-content/plugins/wpvr.
If you’re using the pro version of WPVR, add a comma (,) and include wp-content/plugins/wpvr, wp-content/plugins/wpvr-pro.
Now scroll down and click on the Save Changes and Empty Cache button.
Von nun an werden Ihre virtuellen Touren auf Ihrer Website angezeigt und die JS-Dateien Ihrer Website werden noch optimiert.
Exclude WPVR JS Files From SG Optimizer #
Wenn Sie SG Optimizer verwenden, kann es sein, dass es die JS-Dateien des WPVR verkleinert und die Tour nicht angezeigt wird.
Sie können also die Seiten mit virtuellen Touren von der Optimierung ausschließen, um dieses Problem zu vermeiden.
Go to SuperCacher then choose Exclude URLs.

Kopieren Sie die URLs der Beiträge oder Seiten, auf denen Sie eine virtuelle Tour veröffentlicht haben, und fügen Sie sie in dieses Feld ein.
Sie können mehrere URLs auflisten, die vom Cache-Speicher oder von der Optimierung ausgeschlossen werden sollen.
You can learn more about excluding URLs from SG Optimizer from here.