ImageSlider won't work

Permalink
I have built a website with an image slider as main component on every page.
This slider is customized a little bit to suit our needs, this is mainly image sizing.
Now it works perfectly when I'am logged in to concrete5.
However when I'm not logged in it does not do anything.
I think this is due to jQuery not loading properly?
Does anyone have any suggestions what to do?
The error I get is included as a file.
If I manually download ResponsiveSlides.js and add it, the slider works, however
the arrows to control the slides are gone and the image scaling is messed up.

1 Attachment

 
hutman replied on at Permalink Reply
hutman
Are you using a custom block or just a custom template to the built in slider block? It sounds like the asset isn't being included when you're not logged in.
TimHoncoop replied on at Permalink Reply
I am using the default image slider block, however I found out that ResponsiveSlides.js is not loaded properly when I am not logged in together with all it's assets. I worked around this by loading all these assets manually, but the problem remains.
hutman replied on at Permalink Best Answer Reply
hutman
When you say you're "loading all these assets manually" are you loading the c5 version of the assets? And where/how are you loading them?
TimHoncoop replied on at Permalink Reply
By manually loading I mean I logged in, because then it is working, and pulled all the JavaScript and CSS files concerning the slider. After that I added them to my theme folder and loaded them into the theme using <link> and <script> tags. However this is not the way to properly do it because these files are supposed to be loaded by the slider block itself I assume.
hutman replied on at Permalink Reply
hutman
You are correct, they should be loaded by the block controller when viewing the page. Do you have the requireAsset for jquery in your theme's page_theme.php? Do you have a link you can provide?