Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Why does moving js files to load in footer breaks the infinite ajax scroll plugin?

+2 votes
44 views
asked May 17 in Plugins by delstone
I moved most of my js files into the footer() so they load last to optimise the page without touching the ias plugin code - however doing this breaks the infinite ajax scroll plugin. The bottom of the page reverts back to the numbered pages links.

Has anyone come across this or any thoughts of which js files ias needs to load before its js or how best to move the ias js files? I have tried to put them in the footer() function in the plugin but this doesn't seem to work - I guess there may be a conflict between the footer being defined twice...
Q2A version: 1.7.4

1 Answer

+1 vote
answered May 17 by delstone
My error - included a callback to the base footer function unnecessarily! JS can be moved without a problem.
...