Questions tagged [css-js-aggregation]
The process to merge files together to improve a site performance with less server requests is called file aggregation.
116 questions
0
votes
1
answer
715
views
Enabling aggregate and compress CSS files resuls in vanishing theme
I used this module for more compression on css and js files but it does not work for me! so I disable and remove it entirely.
After that when I enable aggregation of css and js files, my site's theme ...
0
votes
1
answer
637
views
NFS Directories between 2 Servers
I have 2 parallel Drupal Web Servers running (serving for one Drupal Instance together) and now i need to install NFS. My experience in multi Drupal Servers is, each Drupal Instance (Server) uses ...
0
votes
1
answer
49
views
JS aggregation causes a console error
I'd like to activate the core JS aggregation but I am having an error in the console when I do it:
Uncaught SyntaxError: invalid property id
The error is triggered from [email protected] which is ...
1
vote
1
answer
779
views
Aggregated CSS & JS files revert to old version
I'm troubleshooting an odd issue on my Drupal 7 site where it seems that old versions of our aggregated CSS & JS files are used some amount of time after a cache clear. How this is playing out is ...
0
votes
1
answer
4k
views
How to force the browser to refresh the CSS/JS files
I've made a small change on a view (added a new class) and some related changes in the CSS files of the theme.
Since the config change (HTML output) is immediately in effect, I need the browser to be ...
0
votes
1
answer
458
views
'stale_file_threshold' is not a supported key [closed]
I have installed "Advanced CSS/JS Aggregation" on my Drupal 10.
but after installation, I faced a problem.
In performance page, when I want to save configuration (for example I checked/...
0
votes
1
answer
38
views
How can I change the place of the js and css files generated by advagg to another place
How can I change the place of the js and css files generated by advagg to another place, for example in a folder at the root of the site.
Thanks for your help
0
votes
1
answer
777
views
CKeditor 5 does not load with Aggregate JavaScript files option
I use Drupal 9.5.5, CKeditor 5 and BootstrapBarrio theme.
When I enable "Aggregate JavaScript files" option in Performance, CKeditor does not load when a user (non admin) edits node.
I ...
2
votes
2
answers
297
views
Views aggregation summary
I am creating a stats page for a football (american) team in Drupal 7 and I am having issues summarizing the data. I have the following fields aggregated in a views table. Each is a summary of the ...
1
vote
2
answers
1k
views
What does the AdvAgg bundler do?
The description for the AdvAgg bundler says:
If not checked, the bundler will not split up aggregates.
I know that aggregation is merging files together and I take that splitting isn't the opposite ...
1
vote
2
answers
2k
views
How to disable core JS aggregation and AdvAgg just for admin paths
I help look after a site which uses $settings['file_public_base_url'] to serve files from a different subdomain on the frontend, but on the backend (admin paths like node/add and node/edit) this ...
0
votes
1
answer
612
views
'Aggregate and compress CSS files' and 'Aggregate JavaScript files' don't work
Recently selecting Aggregate and compress CSS files or Aggregate JavaScript files in the Performance page stopped working on a Drupal 7 site: When they are selected, the CSS/JavaScript file won't load....
1
vote
1
answer
225
views
Advagg with S3fs relative url() references inside of CSS files - broken image URL
Background Images Paths are Changed when CSS Aggregation is On
s3fs module with AdvAgg to store CSS/JS aggregates on the S3 stream wrapper
Without Aggregation (Works well). fetch from domain base url.
...
0
votes
1
answer
674
views
After updating from 9.2 to 9.3, my site breaks, but turning CSS/JS aggregation off fixes it. What can I change to make it so I can turn it back on?
After updating from 9.2 to 9.3, my site breaks. When I turn off CSS and JavaScript aggregation, it fixes my 9.3 versioned site. I would like to turn it on as that would speed up my site. Normally I ...
1
vote
2
answers
559
views
How to add class to multiple view-blocks using twig?
I have four blocks to a view. I want to add class 'fancy-body' to all four blocks. How can I add that.
view_id : categories
display_id's of blocks : block_1, block_2, block_3, block_4
I know, I can ...
1
vote
1
answer
3k
views
Aggregating Javascript files breaks JS
On my d8 site I have AdvAgg CSS/JS Validator, AdvAgg Minify CSS, AdvAgg Minify JavaScript, AdvAgg Modifier and Advanced CSS/JS Aggregation enabled.
I have standard settings used in the AdvAgg config. ...
1
vote
2
answers
108
views
What's the equivalent of drupal_build_css_cache()?
Our client uses an external website for some of their pages. This provider does not enable us to theme their website directly, but they do allow us to load a single JS file from the Drupal site that ...
0
votes
1
answer
1k
views
Serve aggregate CSS/JS files from S3 instead of local storage
I have enabled aggregate CSS/JS from the backend. It stores the aggregated files in the local system. How do I make them accessible through the S3 bucket? I have already installed the S3fs module.
...
0
votes
0
answers
25
views
Old GZ file is generated after editing CSS original
After editing CSS file in the /sites/default/files/css directory I removed its GZ version and it's generated after a while, but with old CSS code.
How to edit CSS correctly? And how to force ...
0
votes
1
answer
39
views
Escaping CSS digits, 0 is removed from CSS aggregated files
The following HTML markup won't work on a production site.
<div class="iconleft 109">TEXT</div>
This is the code in the custom.css file.
.iconleft.\31 09,
.iconleft.\31 12,
....
21
votes
3
answers
16k
views
How to disable aggregation from either drush or PHPmyadmin?
I've been searching for this and ALL I found deals with Drupal 7. Old drush command drush vset preprocess_js 0 doesn't work for Drupal 8 and the "variable" table in DB doesn't exist in 8...
Yet, I ...
0
votes
1
answer
70
views
Custom js added with drupal_add_js doesn't actually get added if I enable "Aggregate JavaScript files" or "Cache blocks"
The site is the most stock, only Drupal 7 core is installed.
included my theme, where the page.tpl and html.tpl theme files are copied from core
I created a Yandex.Maps module, this is a block where ...
4
votes
1
answer
4k
views
Force rebuild of aggregated css/js [duplicate]
I have manually removed all aggregated css and js files from sites/default/files.
I would like Drupal to regenerate these, but it does not. Drupal is still looking for the old files, the ones I have ...
0
votes
1
answer
140
views
Deployment Issue with Heroku
I have a Drupal project on heroku and it works fine, until a dyno restart.
After that, the Css and Js on the Drupal site stop working.
Whenever that happens, I have to do a flush cache to get the site ...
0
votes
1
answer
359
views
How is the hash for the files calculated?
I am taking an HTML snapshot of a node in Drupal 8 every day at 4 am. Every night a Cron job kicks off this process. I have a service that handles the entire process.
Everything works for now, but I ...
1
vote
2
answers
35
views
Aggregating data to show latest result?
I'm currently using the Elasticsearch Connector to get my data from Elasticsearch for displaying. I've managed to set up some basic pages and display the data successfully, but am now looking for a ...
0
votes
1
answer
701
views
CSS is broken only certain admin pages
Drupal 8.2.7:
Similar to this question: Why does my Site have a broken theme/style?
In my case only certain admin pages css are broken and this seems to only affect admin, not unauthenticated users. ...
0
votes
1
answer
831
views
Advanced CSS/JS Aggregation Module Breaks My Site Layout
When I enable my module Advanced CSS/JS Aggregation it breaks my site layout. Is there something I need to do before or after when enabling this module.
To fix the site layout I need to disable the ...
0
votes
0
answers
2k
views
Perusio Nginx Config and AdvAgg
Problem
The latest in my series of nginx problems.
I'm trying to get Perusio's nginx config working with AdvAgg. However I get an error, 404 requests are not getting through to AdvAgg. Basically ...
0
votes
3
answers
2k
views
Advagg and Nginx
I have the following errors displayed on my status report page:
Adv CSS/JS Agg - HTTP Request HTTP requests to advagg for js files are not getting through.
AdvAgg will issue a request for a file ...
1
vote
0
answers
91
views
How do I reliably expose aggregated CSS/JS to a third party app?
(TL;DR at the bottom)
For the purposes of "theming" some other internal apps based on ASP etc., I need to make a D7 site's CSS/JS available at a permanent, reliable URL; one which will also self-...
0
votes
3
answers
1k
views
User list view showing total nodes created for each user
I have a view which displays a list of particular users. For each user displayed I would like to also display the total number of nodes that user has created.
I was wondering if there was an easy and/...
0
votes
1
answer
484
views
CSS and JS 404 On Admin Site Only - New Install [closed]
This is a new server build...
me@server:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Apache...
me@...
1
vote
2
answers
3k
views
Problem when agreggating CSS/JS files
I'm working on a small D8 site. When turning the option "Aggregate CSS files" (admin/config/development/performance) on localhost, everything works fine. However, doing so when on my test server ...
-2
votes
1
answer
96
views
Requirements for enabling compress and aggregation files
Is there any requirement or module that I need to enable in Apache to properly use the option bandwidth optimization in performance?
Do I need to enable the deflate module or I just need the headers ...
0
votes
1
answer
1k
views
Aggregating JavaScript generates errors and breaks JS functionality
My website is working well but I was required to aggregate CSS/JS by enabling the system.performance.js.preprocess config key.
Once the JS code is within one single file I got some errors that doesn't ...
1
vote
1
answer
47
views
Can I aggregate all stylesheets core, contrib and custom into one single stylesheet?
Is there any way to avoid Drupal from serving multiple stylesheets and instead bundle them together? I am going to look into https://www.drupal.org/project/webpack
I want to avoid all the multiple @...
0
votes
0
answers
125
views
Stop css file renaming when working locally
I've followed this guide to setup settings.local.php:
https://www.drupal.org/node/2598914
And in my custom subtheme I have a stylesheet style.css which is working correctly. However when I look in ...
-1
votes
1
answer
386
views
Aggregation in Drupal 7,many errors
its always a problems with drupal aggregation,once scripts don't work,
now i get this error
Warning: file_get_contents(/sites/all/themes/subtheme/js/script.js): failed to open stream: No such file or ...
0
votes
0
answers
276
views
Resolve Adv CSS/JS Agg - gzip issue
I have this issue on my drupal status report. How do I get rid of the warnings on Advagg?
2
votes
1
answer
3k
views
Upload custom font files
I've been given a directory full of font files (woff2, svg, ttf file types). Is there a way to get these fonts to load when a page is rendered in Drupal? Is there a specific directory I have to put ...
2
votes
1
answer
695
views
CSS not updating with aggregation turned off
I'm running into an issue that I'm not sure how to diagnose. I'm working on minor CSS updates on a custom zen theme for a Drupal 7 site. I have the dev site set up on a laptop running ubuntu dev ...
0
votes
2
answers
1k
views
Does aggregating JS/CSS interfere with my drupal_add_js()?
I want to use drupal_add_js and drupal_add_css on a per-page basis so I have added a 'scripts' text field to my basic content type and have set the Format Type to PHP.
It works beautifully until I ...
0
votes
1
answer
1k
views
Is it possible to disable CSS and Javascript aggregation by role?
Is it possible to disable CSS and Javascript aggregation by role?
That way during content editiong or administration stages the user is not affected and can check the CSS alright, while end users ...
0
votes
1
answer
139
views
CSS\JS Aggregation "Shuts down" Firebug indication
I have CSS\JS Aggregation on, and I've installed the AdvAgg module and set it for Development mode. The site works fine, but now I can't really use Firebug...
Firebug no longer shows me, for example "...
0
votes
1
answer
64
views
Omega theme not rendering correctly when css aggregation is disabled
I have tried clearing the drupal caches and manually deleting the aggregated files. Also tried clearing the browser cache.
Anyone seen this problem before?
1
vote
1
answer
547
views
CSS aggregates generating but not loading (core and AdvAgg), but JS aggregates load fine
I'm trying to set up aggregation and compression on my site, but am having problems. When I enable aggregation, either through core or through AdvAgg, it seems that aggregates are being generated for ...
0
votes
3
answers
335
views
Tried to Inline CSS with AdvAgg but still get errors in Google
My Right-to-left site uses clean Bootstrap subtheme and has CDN, Internal caching (including Boost), Minification, Compression and aggregation, but still I get very low grades with all that has to do ...
1
vote
1
answer
882
views
My theme CSS uses relative paths, but Advagg or another module seems to be rewriting them to absolute paths. Core aggregation uses relative paths
Our CSS authored in the theme uses relative paths for all references to assets
But the CSS aggregated/processed by Advagg has absolute paths where the authored CSS uses relative paths
I can't see any ...
0
votes
0
answers
401
views
Custom JS not loaded when JS aggregation is enabled
I have a couple of custom JS files in my theme that works as they should.
Except that when I enable the JS aggregation (in Config -> Performance) to speed things up these JS functions stop working, ...