Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [css-js-aggregation]

The process to merge files together to improve a site performance with less server requests is called file aggregation.

0
votes
0answers
16 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
1answer
20 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
0answers
21 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 ...
0
votes
0answers
15 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?
0
votes
1answer
25 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 ...
0
votes
0answers
15 views

Get path of advanced aggregator files

Is there an easy way to get the files? I would like to send the aggregated files over to a debugging service but drupal_get_js() isn't supported anymore. Is there other way to fetch them?
1
vote
0answers
140 views

Style Sheet sometimes does not load Microsoft Edge Browser [closed]

I am using the Advanced CSS/JS Aggregation module to load css once the page has loaded: <link type="text/css" rel="stylesheet" href="/sites/default/files/advagg_css/...
0
votes
0answers
31 views

How to get the list of aggregated javascript files?

I have a use case where I want to create a map file for aggregated JavaScript files. How can I programmatically get the list of aggregated JavaScript files? I am using Drupal core aggregation.
0
votes
0answers
22 views

Will loading a CSS file from a separate domain prevent it from being aggregated?

I need to stop some CSS files from being aggregated and according to some answers e.g. How do I tell Drupal not to aggregate my css file loading the file from a different domain will stop it from ...
2
votes
2answers
135 views

What is the correct way to exclude certain CSS files for anonymous, but include for authenticated users? [duplicate]

We have a subtheme, mytheme that is based off of the classy base theme. We have set Aggregate CSS Files = true and when the pages load we end up with many aggregated CSS files. One issue is that we ...
0
votes
0answers
12 views

CDN module using old url for background images when “Aggregate and compress CSS files” is enabled

I have switched our CDN provider and inputted the new URL in the settings page accordingly. Most of the site is working fine, except for background images (theme files) in the CSS which is referencing ...
0
votes
0answers
20 views

Hostname for CSS and JS Aggregation

We would like to place the aggregated CSS and JS onto a CDN as static resources. To accomplish this we need to load these resources with a special hostname. Let's say the base url of the website is ...
0
votes
0answers
32 views

AdvAgg can't check Use cores grouping logic

I check Use cores grouping logic, press Save configuration, get false -> true for Use cores grouping logic The configuration options have been saved. after the page reloaded, but Use cores grouping ...
0
votes
1answer
122 views

JS/CSS aggregation not creating css folder

I am creating a Drupal 8 website with a custom theme. When css and js aggregation checkboxes are checked, js directory is created in sites/default/files/, however css folder does not get created. ...
0
votes
1answer
18 views

Aggregated javascript contains binary data, breaks site

Today I noticed a site's javascript was broken. One of the aggregated javascript files contained a bunch a binary data that (obviously) caused a syntax error; ‹EAk1…ÿŠæ”°!«Ð–¢Á¶]¤µ'³³6â&K2ºÑßÞ,...
0
votes
0answers
164 views

Advagg only aggregating and compressing some files

I'm using the Advagg module to reduce the number of http requests for CSS/JS files, but this only seems to work to a limited extent. In particular I'm concerned about why my theme stylesheets/js aren'...
0
votes
1answer
62 views

Problems with aggregated CSS

I activated aggregate CSS on my local development and on a remote testing environment without any problems. Now on staging the aggregation of CSS files causes trouble: on some pages the styling looks ...
0
votes
2answers
205 views

Pros and Cons of Combining CSS/JS files or loading contextually?

I am building an application in Drupal 7. There is one common CSS file A.css with 1000 lines of code. There are other 5 CSS files(B.css,C.css .... F.css) with 100 lines each. I want to load the other ...
3
votes
1answer
1k views

Force rebuild of aggregated css/js

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 ...
1
vote
0answers
43 views

#states doesn't work with Aggregate JavaScript

Recently I have encountered the strange behavior of setting form created with Form API in Drupal 8. I am using #states to hide one of the form elements ( radios ) when another element is empty. The ...
0
votes
1answer
177 views

Background Images Paths are Changed when CSS Aggregation is On

I have a Drupal 7 site with and Adaptives Themes subtheme enabled and set as default. I was recreating the Drupal 6 site in Drupal 7 on a subdomain and have recently transferred it over. My site has ...
1
vote
1answer
266 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
1answer
71 views

Upstream cache clear issues

I'm running into issues with caching on my Drupal 7 site, where it seems that users are receiving stale pages, despite not having "cache pages" or "cache blocks" settings enabled. There is no ...
0
votes
1answer
158 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. ...
1
vote
1answer
49 views

Drupal 7 Breaks CSS Rule Ordering Standards when CSS Aggregation is Turned On [closed]

Drupal 7 has an interesting bug (some may consider this a feature) when rules are included before an external CSS document is included using @import. The CSS Aggregation engine will let you "bend the ...
3
votes
1answer
1k views

How to exclude specific css file from aggregation

Is it possible to exclude a specific css or js from drupal'l css and js aggregation ? For ex: Exclude custom-style.css from being aggragated ?
4
votes
1answer
104 views

How do I pre / post process aggregated css or js files?

I want to declare the character encoding of our aggregated css files - how would I be able to pre or post process the aggregated css files in Drupal 8? E.g. injecting @charset "UTF-8"; on top of all ...
3
votes
1answer
63 views

Why is my site's homepage loading in static mode?

I am using the AdvAgg module and all of its submodules, configured it using the configuration in AdvAgg README file. After doing so, the site's mobile view got problem. So I disabled all from AdvAgg ...
1
vote
1answer
631 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 ...
3
votes
1answer
43 views

Is there some way to compress CSS and Javascript only for certain users?

When I check the source of my web pages I am appalled at the amount of Javascript links in the page, but I have disabled the CSS and JS compression as I am often in development mode. Is there some ...
1
vote
2answers
564 views

What does the AdvAgg bundler do?

I tried to read the description but I didn't understand what this component does. The description says: If not checked, the bundler will not split up aggregates. I know that the purpose of ...
8
votes
3answers
3k 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
1answer
109 views

After moving a new server, one of 2 Drupal sites, has no css loaded

I moved 2 sites from a shared server to a VPS. One works just fine with a custom theme, but the second doesn't have the Bartik CSS loaded. Both sites moved via the user root and as it seems almost ...
0
votes
2answers
983 views

How to fix google page speed insights issue?

I'm facing issues on my every drupal site when i test my website in Google page speed insight . I have configured Advagg module and followed but not succeed.Issues are below: Eliminate render-...
3
votes
1answer
273 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 ...
-1
votes
1answer
62 views

Advagg css files are refering old site address [closed]

i have developed site in one machine (www.example.com). i moved all setup to another machine (www.example1.com).after moving some problem is there.some css files like "css__48K1J5D3tG5zmBfajwIKY-...
0
votes
1answer
75 views

check mark disappear after moving to new ip address

I moved my web server to another ip address. But "Advanced CSS/JS Aggregation" still refer the images from the old ip address. All the checkmark in my dashboard are disappeared, no matter for radio or ...
0
votes
0answers
138 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, ...
1
vote
0answers
67 views

Place CSS/JS aggregated files in a hierarchical directory structure

I use css and js aggregation for increase the speed of a drupal 7 website. Now, when I log in with user A, four news files (one css and one js) are added in the files website directory like that : ...
0
votes
2answers
71 views

CSS/JS aggregation, huge number of files

I use css and js aggregation for increase the speed of a drupal 7 website. Now, when I log in with an user A, four news files (one css and one js) are added in the files website directory. (for each ...
1
vote
1answer
596 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 ...
1
vote
0answers
102 views

AdvAgg Update & Settings Problem

I see this warning I go to update the database. Notice: Constant ADVAGG_MOD_CSS_DEFER already defined in include_once() (line 172 of /home/valerie/public_html/permanentmakeupcornwall.com/sites/...
0
votes
3answers
249 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
1answer
568 views

Advanced Aggregation: Should I disable core's aggregation?

I know that AdvAgg's bundler will, by default, disable core's grouping logic, but I'm unclear as to whether core's aggregation should be enabled or disabled (at admin/config/development/performance) ...
3
votes
1answer
2k views

Further optimizing CSS delivery with AdvAgg?

It seems to me that my main Drupal UI based task to leverage my site's optimization is further optimizing it's CSS delivery... Given the following facts, It's wired for me that Google's PSI advices ...
1
vote
1answer
325 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
1answer
91 views

CSS or and JS aggregations all makes site slower!

It is well known among Drupalists that generally, Aggregation of CSS\JS files should hasten webpage loading times in Drupal... So why the opposite is true for my site this time? PSI test score for my ...
-2
votes
1answer
2k views

How do you configure AdvAgg module? [closed]

If you have a Drupal 7.37 site, say the site of your own business... The site is kinda light by nature; no customization (Except for CSS), mainly conventional modules, and very few modules anyhow, ...
0
votes
0answers
21 views

Filtering aggregated referenced nodes

I have two content types and a view that I want to count the number of Requests per Trial. The thing is I want to filter the Requests in a view of the Trials. Here's the problem laid out: Content ...
1
vote
0answers
108 views

Drupal absolutely refuses to serve gzip css and js files, however they are produced just fine. What could be causing this?

What I have tried so far: All variations of modifications and additions to .htaccess gzip relevant sections near the bottom. The Advanced CSS/JS Aggregation module, and all suggested configurations ...