How to add Defer or Async attributes in custom module

I developed a small drupal module which bring the external Js to head tags.

Understanding synchronization

I'm not new to Drupal but all my sites are Drupal 7 and I started migrating them to Drupal 8. I'm trying to get used to the current work flow, and I'm starting to use configurations imports and exports. I understand that with this we can move from development site to production site without having to touch directly the database. I already have development and production in sync, and I did some work in the development site such as installing a couple fo modules, and changing a couple of configurations. One of the new modules is pathauto and I bulk converted paths for a lot of content.

Run a script in the background that IS NOT CRON

I have some scripts that I need to run manually, these scripts are not meant to be ran on a regular schedule, therefore, I DO NOT want to use cron. With that, how can I kick off a php script in the background?

I've tried to use `exec` but it doesn't know what drush is, so I can't run my script that needs ran via drush.
I looked into the `Background Process` module but 1) it hasn't been updated in years and 2) it doesn't have a Drupal 8 version. 

How can I run a script in the background that isn't done through cron?

Is DateFormatter::formatInterval going to be depricated/abandoned?

I see that in D7 tracker module was using format_interval call to render time intervals with "ago".

Now in D9 I see that it is using formatTimeDiffSince method on DateFormatter class (that in turn calls formatDiff method.

My question is what is the reason not to use formatInterval method on the same class. (which is like D7 format_interval function). I do not see any module using formatInterval method anymore. (Correct me if wrong)

Assisting The Office Group with international growth

Picture of inside The Office Group

Inviqa helped The Office Group develop a maintainable, scalable website to propel its international growth. They needed a site that was easy to update and maintain, offered multi-language support, ecommerce functionality and a number of other crucial features.

The Office Group now has a fast, flexible, and maintainable site that can grow in line with the business and propel the company’s international growth plans.

Sectors: 
Real Estate

Driving Bonhams into new territories

Red sports car

International auction house Bonhams first engaged Inviqa in order to design, develop, and carry out a total rebranding of their main global website. 

The success we had together on this initial project led to another opportunity within their motoring department which is famous for auctioning rare and highly collectable motor cars in conjunction with some of the most distinguished motoring events in the world. 

Sectors: 
E-Commerce

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x