Skip to content

Conversation

@rvs1257
Copy link
Contributor

@rvs1257 rvs1257 commented Apr 15, 2014

Also wait for the dataTables script to load, allows placing jquery.dataTables.js in the scripts section at the end of the layout page, to avoid needing to put the jQuery and dataTables scripts in

Also wait for the dataTables script to load, allows placing jquery.dataTables.js in the scripts section at the end of the layout page, to avoid needing to put the jQuery and dataTables scripts in <head>
mcintyre321 added a commit that referenced this pull request Apr 15, 2014
Wait for dataTables script to load
@mcintyre321 mcintyre321 merged commit 7ddf439 into mcintyre321:master Apr 15, 2014
@mcintyre321
Copy link
Owner

I'm not convinced you want them at the end of the page though.. once they get cached they shouldn't affect performance too much, and you really want the ajax call to run asap...

@rvs1257
Copy link
Contributor Author

rvs1257 commented Apr 15, 2014

Thanks, so it is now possible but not advisable. I've tested and it seems like on Firefox the performance is slightly better after caching, when putting scripts in the head tag.

@rvs1257 rvs1257 deleted the patch-1 branch April 16, 2014 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants