Support » Plugin: Autoptimize » Can’t find where to exclude.

  • I got this js snippet

     jQuery(document).ready(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Close","currentText":"Today","monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"nextText":"Next","prevText":"Previous","dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"dateFormat":"MM d, yy","firstDay":1,"isRTL":false});});
    

    I tried searching jQuery.datepicker.setDefaults in my whole site *.php;*.css;*.js;*.html, and can’t find the code where it came from. I can’t exclude “jQuery.datepicker.setDefaults” either.

    What can I do to find the source of this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Well, this explanation from another thread might help funsail?

    Starting at #3 since there’s no error.

    No files matching jQuery.datepicker found

    Unless it’s just datepicker
    /wp-includes/js/jquery/ui/datepicker.min.js

    but no that’s the thing being called. I don’t have a datepicker in my site anyway 🙁

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    weird .. can you share your URL once again funsail?

    3. open the same page un-autoptimized (by adding ?ao_noptimize=1 to the URL)
    4. open Firefox’s developer tools and in the debugger use the “search sources” function with the word from (2) to see what source file contains that string
    5. add the file you found that way to the list of AO JS optimization exclusions

    Just tried again. Is it because it’s not a filename?

    Where can I email you the url?

    Plugin Author Frank Goossens

    (@futtta)

    Where can I email you the url?

    that would be futtta-at-gmail-dot-com 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.