Hello, I was wondering if there are any recommended approaches for creating critical path CSS so your each page could use preloaded styles to render above the fold components on first paint? I have looked at some services and also some open source projects such ashttps://github.com/pocketjoso/pentho...
Hello, I am seeing our javascript files minified are getting over 1MB and I am wondering if there any best practices for reducing the size of the clientlibs both javascript and css. For example:1. Are there ways to use lazy loading of scripts and styles and prioritizing a group of scripts for initii...
Honestly we discussed on my team and decided this would be too tricky to implement and decided to go another route. I think what was asking is a sort of anti-pattern for typical AEM component implementations. I was trying to use a parent component applied style classes to define the child component'...
Depending on certain layout properties returned by the sling model, I would like to make either 1 or 2 multifield entries available in my dialog. Is there a way make the dialog display either 1 or 2 entries in a multifield? Is this best handled via validation scripts?
@h_kataria yes that actually seems to do the trick. It helps quite a bit now. I was able to take my current resource and get the second parent resource, then apply that resource to the logic you provided. I can retrieve those CSS classes as well. Thanks, I cannot say how much this helps.
It returns an object now that I include the adaptables for the SlingHttpServletRequest.classI guess now I'm a little confused because properties associated with style are not quite what I thought they would be. I did this again using using teaser component and I defined allowed stylesI then set the ...
I am trying to get the styles assigned in the design dialog incorporated into my Sling model. I am getting null for the currentStyle package com.cws.aem.core.models.v1.content;import com.cws.aem.core.models.v1.ComponentModel;import com.day.cq.wcm.api.designer.Style;import org.apache.sling.api.resour...
My problem is, my component has the responsive grid. Initially when adding the component, the responsive grid has no height. If I added the parsys is draggable and has height. I followed the tips provided here https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-responsive-g...