Re: Adding data table plugin to improve tables

Posted by fiammybe on 1552693452

I looked around, and stumbled upon this page : https://bitsofco.de/async-vs-defer/ where the author explains a bit what the different options are, and when you can use what.

Putting scripts at the end of the page to make the browser take them into account last is an option. But that will not always offer the biggest speed improvement, because you will still be loading the files one after the other. If the script in question has no dependencies, you could use the "async" keyword, to indicate to the browser that it can load the javascript file in parallel with parsing and downloading the HTML.

In the end, lesser files to download, even if they are bigger, is also an optimization. So you could also consider using tools like webpack, to reduce the size and the number of files you include in your page as an extra optimisation.


This Post was from: https://www.impresscms.org/iforum/viewtopic.php?topic_id=5862&post_id=50590