Active
Project:
turnjs
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2013 at 20:09 UTC
Updated:
17 Jan 2013 at 22:42 UTC
The turnjs.js file is added even if the nodes image_fields are empty.
The code below added in line 116 in turnjs.module will ensure that the JS is only loaded when needed.
if ($items == NULL) {
return null;
}
The code above will allso optimize the pageload, if the users have added a custom css-file from within the module.