Here's an interesting side effect while using DeferJS.
If a site user uploads a text file which happens to be an HTML sample that contains script tags, DeferJS will resequence the script tags in that text attachment when others download it.
I tested using a very basic HTML sample that had script in the head section and upon download, the text file saved on my PC had the scripts moved to just before the closing body tag.
Surprising, and yet logical, I guess when you think through how it's working.
Do you think there be a way to have DeferJS not fire when in the attachment function in XenForo, kind of like you exempt ACP code?
If a site user uploads a text file which happens to be an HTML sample that contains script tags, DeferJS will resequence the script tags in that text attachment when others download it.
I tested using a very basic HTML sample that had script in the head section and upon download, the text file saved on my PC had the scripts moved to just before the closing body tag.
Surprising, and yet logical, I guess when you think through how it's working.
Do you think there be a way to have DeferJS not fire when in the attachment function in XenForo, kind of like you exempt ACP code?