Have much to say about both W3TC and pagespeed, but will try to stay on the point.
You should never have a JS external element in you HTML as part of the actual content, they should be either in the head element (but only scripts that must be loaded before the page finishes loading) or just before the end of the body.
CSS should be only in the head element.
The assumption is that if you decided to violate those basic performance rules you probably had a very good reason for that, and no plugin with a sane author will try to rearrange it for you as you can easily break the page if things are not being loaded in the right order.
So you need to understand first why do you have JS and/or CSS at that part of the page, and if it is not needed then you need to change your code to move them to the header or footer. Caching plugins have totally nothing to do with it and should stay away from even offering page changing functionality like that.
Related Posts:
- How do I minify a plugins CSS/JS code?
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Sudden ERR_HTTP2_PROTOCOL_ERROR on every JS and CSS files loads
- How can I reduce the amount of files loaded/included per plugin?
- Why my browser keeps loading old version of custom JavaScript files in \divi\js? [closed]
- How can I make content disappear when a user logs in?
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Prevent CSS/JS loading when plugin is not used
- Plugin Expires Headers – W3 Total Cache [closed]
- With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
- Is there an earlier hook than login_head or login_enqueue_scripts?
- W3 Total cache “empty all caches” and no stylesheets render [closed]
- Can someone please tell me what is wrong with my plugin?
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- Redirect to another page using contact form 7? [closed]
- Combining several CSS files into one for optimization
- how to prevent all css and javascripts files from loading
- How to execute a plugin on a single page only?
- How to add support for caching plugins for my own plugin?
- get specific value of a array | PHP
- Object Caching Plugin force every plugin to cache objects?
- CSS/JS files in WordPress
- W3 Total Cache Help – How to update DNS Zone for a static domain [closed]
- How do I override all stylesheets and scripts without a plugin
- W3TotalCache and Javascript — what should go where, when?
- What archive plugin works with W3 total cache? [closed]
- uncaught TypeError: Cannot read properties of null (reading ‘classList’) custom plugin
- Custom Plugin scripts from admin working in frontend
- Memcaching recurring SQL Queries
- Overriding inline !important CSS with Javscript code snippet with media query
- Execute inline javascript in wordpress after page fully loaded
- Speeding up WordPress on a Local Network
- Speed issues because of CSS & JavaScript
- Best use adding user generated JS/CSS to a theme with a plugin
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- Possible jquery / library conflict in plugin usage
- contact 7 plugin stops some pages from working properly
- W3 Total Cache and IIS7 not doing much [closed]
- Element works, but not on wordpress site [duplicate]
- WP Super Cache versus W3 Total Cache [closed]
- Eliminate Render blocking CSS?
- Browser Cache causes ‘Orderby=rand’ to return the same posts
- How to make WordPress ignore GET parameters when caching pages?
- Dropdown menu only appearing when logged in
- How to include code only on specific pages?
- Best WP cache plugin for large site [closed]
- Using tabs for wordpress plugin
- Why is the unrendered widget number `__i__` showing up in the JavaScript but not in the HTML?
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- Add CSS class to add-to-cart button, Woocommerce [closed]
- How to load all plugins CSS after child theme CSS?
- White text on white background in TinyMCE when wp_editor is called in WP 3.9
- I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
- What’s the best plugin for allowing javascript in a post or page? [closed]
- Is it possible to filter the wp_footer() scripts, read the content, and insert them inline?
- Disable / Deregister all JS from all plugins
- Passing RichText attributes to function onChange
- How to add page using HTML, CSS and JS?
- prettyPhoto media loading very slowly in Chrome
- How many SQL queries WP Super Cache make to serve cached page?
- Using custom JS plugins with WordPress?
- Override Javascript in a Plugin?
- Globally register styles but enqueue them selectively
- Getting WPTouch and W3 Total Cache to Work Together [closed]
- (Sticky Row) How do i make a row sticky in wpbakery page builder?
- Redux Framework: Page freezes on typing in Editor
- Adding CSS to custom post type admin page causes error
- Edit External CSS
- Why Do I get “wp_remote-get: could not handle for fopen()”?
- JavaScript in a PHP plugin
- How do I add some javascript validation to the admin interface form’s onsubmit?
- Changes not visible when not logged in
- How use wp media upload liberary in react components?
- How to use custom Javascript code inside a plugin?
- site url is not working after migrtaion in worpress, all links are broken
- Executing Javascript in Plugin
- Add background image/layout for single page?
- What’s the default setting for including a in a post
- Error activating certain plugins
- Code for unique user visit count on every page WordPress
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- Fixed: Console.log twice in the edit function
- Trouble with AJAX using GET
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- How to get Angular app working in WordPress plugin?
- How to reset WP plugin?
- Custom Field used to allow a Free Story; no longer works
- How to change the width of certain paragraph or header blocks?
- Create a form and have custom menu display based on user answers?
- Enabling plugin on specific pages and subpages
- How to print shortcode with js in visual composer?
- Can’t insert files in other inputs
- Is it possible to run javascript on plugin deactivated?
- How to tweak a plugin without preventing it from updating
- Trying to disable all notifications except for one on woocommerce checkout page with css [closed]
- Defer parsing of JavaScript [duplicate]
- how to embed a crop feature for cropping images uploaded by the user
- Select posts from list and add them in a new list