Stack Exchange Network

Stack Exchange network consists of 174 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.

-1
votes
0answers
9 views

Drupal 7 Theme CSS js

my site upgrade drupal 7 to drupal 8 also install theme but CSS and js file not working . can you tell me how to embed CSS and js or any other solution ?
0
votes
0answers
12 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 the drupal_get_js() is not supported anymore. Any other way to fetch them?
0
votes
0answers
11 views

Sub theme css not loading

I took over a Drupal 7 site and was setting up a local environment in MAMP on windows. At first I got a white screen. I went to updates.php and ran a couple updates and could then get into the site. ...
0
votes
2answers
30 views

How to load absolute CSS and JS assets

I would like to load CSS and JS from https://static.example.com . The typical page contains: <link rel="stylesheet" href="/sites/default/files/css/css__wBfhyL83sORKzo__AgHv4HOGuOoSbIzIaa4clq9PXs....
1
vote
0answers
52 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
30 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
79 views

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

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
9 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
14 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
15 views

Jcrop problems with Drupal website

So I have a drupal 7 website of news articles with image for each article. The image is added to the article and then using jcrop the image is sized according to the layout of the page. In admin ...
0
votes
0answers
27 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
24 views

Any way to add CSS for common path?

I have a Drupal 7 with several basic pages with repeated paths, for example: 1) /red-car/ford-and-chevy 2) /red-car/nissan-sport 3) /red-car /renault-mazda 4) /blue-house/mexico 5) /blue-house/...
0
votes
1answer
63 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
0answers
34 views

dns-prefetch on multi language site - only shows on one, incorrectly

During an automated search for broken links on our sites I found this faulty line in the <head> section in ONE of our sites (out of 8 TLDs running on the same Drupal installation): <link rel=...
0
votes
0answers
17 views

Is there any reason not to just put page-specific CSS inside <style> tags in a block on the page in question?

I inherited a giant Drupal site and do not have the luxury of time necessary to un-screw and streamline 10 years of accumulated CSS. Because each of our approximately one million modules have their ...
0
votes
1answer
15 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
1answer
27 views

Can't seem to load CSS in a custom theme

I'm working on trying to add CSS to a custom theme, and it seems my logic is failing somewhere. I'm adding simple css files in the .libraries.yml on the root of the theme (only thing in them right ...
0
votes
0answers
125 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'...
1
vote
1answer
816 views

How to setup external CSS and JS to prevent render-blocking from Google PageSpeed?

We are using Google's PageSpeed to help optimize the site. A couple constant issues that come up include render blocking CSS and JS. We have tried the following in our libraries.xml file, but cannot ...
0
votes
1answer
53 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 ...
-1
votes
1answer
30 views

Getting CSS content above the fold and I'm not quite sure why

I am getting this error for Page Speed insights, but I have followed the instructions I saw here to a T, and also tried messing around with it a bit. Here's the link to the instructions. I'm still ...
0
votes
2answers
184 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 ...
2
votes
1answer
851 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
37 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
163 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
218 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
64 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
117 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
2answers
118 views

Drupal site menu overlay stuck in Chrome Browser when scrolling down

I noticed a strange behavior in my drupal Portal when using Chrome. There is an overlay at the top of the page. In Chrome, that overlay gets “stuck” on the page and you can’t easily get rid of it, and ...
1
vote
1answer
44 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
937 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
99 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
59 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 ...
0
votes
1answer
510 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
40 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
521 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
103 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 ...
1
vote
2answers
942 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-...
0
votes
1answer
318 views

How to aggregate document.ready actions?

This may be as much a style question as anything, but: I'm building a site that uses the Bootstrap theme and a bunch of Bootstrap features -- popovers, dialogs, and the like. This means that I often ...
3
votes
1answer
226 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
58 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
71 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 ...
1
vote
3answers
629 views

How can I Eliminate render-blocking JavaScript and CSS in above-the-fold content?

I am using drupal 7 and Page speed in 82 for desktop on Google Page Insights. I am having some issues regarding eliminating render blocking js and css. How can I do this for aggregated js/css ? I ...
0
votes
0answers
112 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
67 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
574 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
2answers
423 views

Error Adv CSS/JS Agg - Fast 404: HTTP Request [closed]

I have problems in my dashboard. Can you help me with the résoudres. I installed on my website the following modules : - fast 404 - Advanced CSS/JS Aggregation - HTTP Parallel Request & Threading ...