Reduce load time using loadJS and media queries
-
As for load speed, I′d like to use a Javascript that will load different tables, CSS files depending on browser size. Instead of loading 1 table for mobile, 1 for tablets and 1 for desktop, that is shown/displayed with CSS media queries, I′d use this JavaScript code so that only one table table and one stylesheet would load. In order to do this, I′d have to make 3 different CSS files, and be able to use JavaScript
loadJS
to tell which table to load. Now my questions for this:1. In TablePress/CSS there is a warning.txt that says to not touch the CSS files because updates may cause errors. Adding 2 new CSS stylesheets, would they be destroyed in future updates of TablePress?
2. How would I go about to use loadJS query to load only one table? I can’t seem to find the table files in the wp-content/plugins/tablepress files?Tobias, to finalize I want to say that TablePress is an amazing plugin and I’ve recommended it to my friends and will definitely keep doing so. Cheers
- The topic ‘Reduce load time using loadJS and media queries’ is closed to new replies.