Responsive Image Styles - optimized for page speed?

Hey,

This is a really rudimentary question - but I am hoping for some confirmation. I am trying to figure out HOW responsive images work.

Do Responsive image styles generate NEW images based on those sizes? Or do they scale the existing images?

If they scale them - doesn't that mean they aren't really truly optimized for page speed? In a perfect world - don't you want an image that is the exact size specified by a breakpoint and not an image scaled to that size?

Sort of confused by it all but appreciate any help!

Thanks!

Repository of user-made content types?

Does anyone know of a repository of user-made content types, where I can browse, and ultimately import, content types other users have made? I realize many would be very specific to the original creator's needs, but I’m sure many would also be usable to other people. 

If if nothing else, it would give ideas on how to deal with specific challenges. Just trying to avoid too much "reinventing the wheel".

404 images after flushing clache

Hi, 

When I flush my cache, lots of my images have 404 links. It's really boring, the only way I found is to restore a back up.

for example: in this page https://www.maviesansgluten.bio/nous-trouver

Before I flused all caches, all 4 images where displayed. Now only one is. 

How can I fix this ?

Why is it not recommended to add jscript in a custom block?

I saw many authors saying that custom jscript should be added in a theme or a module. Being a complete freak I have often added jscripts in a custom block and it always worked just fine. Before I have done the same one more time, I would really appreciate someone's explaining to me why I am wrong with this. Thanks in advance.

Twig debugging problem

Hello,

I've read that to activate twig debugging you have copy development.services.yml to the default directory, rename it to local.services.yml, remove: 

parameters:
  http.response.debug_cacheability_headers: true

and add:

parameters:
  twig.config:
    debug: true
    auto_reload: true
    cache: false

at the end of the file.

Content Type Referencing Help

Okay I need to achieve the following:

I have two content types, Parent and Child. Now lets pretend I have four pieces of content: Parent A, Child X, Child Y, and Child Z. Child Y and Child Z both reference Parent A using the entity reference field. Now I need Parent A to only display the Child content types that reference Parent A. How do I link these together and what do I use to display the Child Y and Child Z within Parent A.

Please be specific, I'm fairly new to Drupal, so every bit of information helps.

Thank you,

Miles

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x