you’ll indeed have to exclude the jQuery Datapicker JavaScript files from JS optimization vchang.
let me know if you need more help! 🙂
frank
Thread Starter
vchang
(@vchang)
How would I find the datepicker javascript files? Thanks.
With “aggregate JS” off check the page’s HTML source and look for the string datepicker, you’ll very likely find one or more JS-file loaded with that as part of the filename, exclude those.
Thread Starter
vchang
(@vchang)
Do I just put the name of the .js file or the do I also need to include the path to the file?
Thread Starter
vchang
(@vchang)
I set the file name as excluded as in “/datepicker.min.js” and this seems to work but the other error is still there: “Uncaught TypeError: document.getElementById(…) is null
<anonymous> https://www.alphasciencelabs.com/wp-content/cache/autoptimize/js/autoptimize_44bd4aa4331484a2e24c3e09310b5f63.js:2216”
There is no .js file associated with the error. Is this a CSS exclusion?
No, that’s not related to CSS. Did you by any chance have “force JavaScript in head” active? Or “also aggregate inline JS”? If so, disable those and re-test?
If not you’ll have to look at the source of the JS file at line 2216 (?), but in that case you might have to exclude plugins/cornerstone (which seems one of the only ones that have document.getElementById in the source code).
Thread Starter
vchang
(@vchang)
The problem was I had “aggregate inline JS” set. I have disabled it and it work fine now. Thank you for the help. Much appreciated.
you’re welcome, feel free to leave a review of the plugin and support here! 🙂
have a nice day!
frank