Autoplay of carousel stops working when PrimeFaces JS are deferred

975 views Asked by At

The carousel is showing up but is not autoplaying, here is the code <p:carousel autoPlayInterval="4000" effectDuration="2000" effect="fade" circular="true" var="var" value="#{mybean.topratedList}" numVisible="1" responsive="true" >

When I switch off the CombinedResourceHandler the carousel works again fine.

I'm using primefaces 5.3.7 and Omnifaces 2.4

Thanks in advance

Update:
This problem vanishes when I stop delegating PrimeFaces jQuery to CDN with Omnifaces like described here - removing from web.xml this code snippet
<context-param> <param-name>org.omnifaces.CDN_RESOURCE_HANDLER_URLS</param-name> <param-value>primefaces:jquery/jquery.js=http://code.jquery.com/jquery-1.11.4.min.js</param-value> </context-param>

0

There are 0 answers