Pages (3): 1 2 3   
Member
Member
Ralf   11-04-2021, 08:52
#1

Hi,
I would like to exclude some js files and tried to add them to the 'Skip Elements' box.
Example:
zp-core/zp-extensions/openstreetmap/leaflet.js

But I cant get the leaflet.js excluded from beeing moved to the bottom of the page.

Not sure what exactly is the correct syntax for adding an js exclusion. Tried the full path like above or simply leaflet.js
But this does not work.

Any hints?
Ralf

Member
Member
Ralf   11-04-2021, 09:24
#2

To be a little more precise what is exactly the problem on my site:

I have created a page which shows all geotagged images on a map by using this code:

As soon as I enable the Tidy Assets plugin, the map will not be loaded.
What makes me wondering:
On the image page the map is displayed fine - even with the plugin enabled

Administrator
Administrator
acrylian   11-04-2021, 09:26
#3

Any JS errors perhaps? Btw, you either pass the album object or you make it current without passing it.

Member
Member
Ralf   11-04-2021, 09:39
#4

What I see in the console:
Uncaught ReferenceError: L is not defined

But I have no idea how to fix this.

Administrator
Administrator
acrylian   11-04-2021, 09:42
#5

Please remove all parameters when making the album current. That would be the normal album page usage.

Member
Member
Ralf   11-04-2021, 10:02
#6

makeAlbumCurrent()
will not load the page.

Could you point me in the right direction?

Administrator
Administrator
acrylian   11-04-2021, 10:13
#7

I was referring to the printOpenStreetMap() call. Either you pass an album object to it or you use the current album.

Member
Member
Ralf   11-04-2021, 10:36
#8

changed the code to:

which makes the map display fine. Until I enable the plugin. Then the uncaught refereneError is back and no map is displayed

Administrator
Administrator
acrylian   11-04-2021, 10:44
#9

Sorry, I really can't help with the plugin itself as I never used it. I mean it has a disclaimer that it may not work with every script.

Member
Member
Ralf   11-04-2021, 10:52
#10

No Problem :-)

Pages (3): 1 2 3   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.