This PR allows the script loading to be deferred for improved loading performance, default off to preserve compatibility with existing sites. It can be enabled by passing (by keyword only!) defer=True to JSGlue.include() in a template file.
I do not know how to add a test for this but it is easily manually checked to ensure it works.
This PR allows the script loading to be deferred for improved loading performance, default off to preserve compatibility with existing sites. It can be enabled by passing (by keyword only!)
defer=True
toJSGlue.include()
in a template file.I do not know how to add a test for this but it is easily manually checked to ensure it works.