Closed (fixed)
Project:
JS delay load
Version:
2.1.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 May 2021 at 07:06 UTC
Updated:
10 Jun 2021 at 12:24 UTC
Jump to comment: Most recent
Comments
Comment #2
vdsh commentedSure! You can also remove external javascript files if added through any of the standard Drupal mechanisms. Eg, you can remove (or delay) //cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js
What I suggest you do is create 2 strategies, a default one with this external js file removed and another one where it is not (maybe delayed to improve performance?)
Then use rules https://www.drupal.org/project/rules to select this other strategy based on conditions (eg: only on product pages)
Hope it helps (please close this ticket if it did)
Comment #3
vdsh commentedI set the ticket as Fixed as no replies, feel free to reopen if needed