1,078 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
64
views
C preprocessor and the DEFER technique
This snippet is mostly from the Cloak wiki, C Preprocessor tricks, tips and idioms, with DEFER2, X1, and X2 added by me for ease of referencing things in this post.
#define EMPTY()
#define DEFER(id) ...
-1
votes
2
answers
61
views
Should I use defer or DOMContentLoaded for modifying image loading attributes?
I'm optimizing image loading for a grid layout (similar to YouTube thumbnails) by setting loading="eager" for some images and loading="lazy" for others based on screen size. I have ...
0
votes
0
answers
29
views
Implicitly change deferred state to active state in Azure Service Bus
So, I'm facing some issues in Azure Service Bus.
Background - My Pipeline is connecting to azure service bus using a connection string, reading the message, converting it in deferred state and then ...
1
vote
1
answer
867
views
Why doesn't defer import?
hook.js:608 SyntaxError: The requested module '/node_modules/.vite/deps/react-router-dom.js?v=b741cdde' does not provide an export named 'defer'
import {
Await,
defer,
useLoaderData,
Link
} ...
0
votes
2
answers
73
views
How to rate limit a deferred HTTP client in Twisted?
I have an HTTP client written in Twisted that sends requests to an API of some site from a deferred. It goes something like this (somewhat simplified):
from json import loads
from core import output
...
1
vote
1
answer
133
views
WordPress Assets not loaded correctly because of attached '='defer
My WordPress Installation appends '='defer to all JS URLs.
Now they are not found anymore becuase they obviously do not exist.
<script src="https://example.org/wp-includes/js/jquery/jquery-...
2
votes
2
answers
394
views
Why isn't the defer working in this case on my laravel project?
I'm using a layout template to yield scripts and content as follows:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name=&...
0
votes
1
answer
260
views
What's a difference between "on" and "when" in the new angular defer block
New Angular defer block comes with some new features.
We can use when element as well as on element. What's the difference between them?
@defer (when isReady) {
<span appFoo>
{{ 'foo' | ...
0
votes
2
answers
2k
views
How to use @defer in angular component many times in the same page
Can I use @defer on multiple viewports in the same page? When I use it, all the defers work at the same time, not waiting to enter the viewport to execute. They all get triggered in the beginning.
Can ...
5
votes
3
answers
7k
views
How can I use async pipe with @defer to load and declare variable in template in Angular 17
For Example using @if, I am able to do this: @if(items$ | async; as items). I am able to declare 'items' as a variable holding the array of items using the 'as' keyword in the template.
How can I ...
0
votes
1
answer
154
views
Can a user modify remove a `defer` tag of a script that redirects them
I have a <script> in the <head> of an HTML file that checks to see if the user is authorized to view the page's contents through a token cookie. The <script> is tagged with defer and ...
0
votes
1
answer
38
views
django: How to defer TextField and localized variants of field from queryset including related models
When making the query to the model which has related models with large text fields, django loads all data in SQL query.
How to defer automaticaly textfields, from main model and related in queryset?
...
0
votes
2
answers
1k
views
Script with defer prevents loading of Angular App
I have an Angular app which depends on a script on a server, that isn't always stable. So sometimes it takes some time to get loaded. Therefore I added a defer-attribute on it. But the App waits until ...
2
votes
1
answer
948
views
"Finally" equivalent for Swift?
https://nearthespeedoflight.com/browser.html
func untilThrowOrEndOfTokensReached<ConsumedType>(perform: () throws -> ConsumedType) -> [ConsumedType] {
var results = [ConsumedType](...
-1
votes
1
answer
151
views
Alternative for deferred length character arrays in common blocks? (crashes gfortran)
My goal is to call a C function to allocate Fortran dynamic arrays (which works fine for integer, real, logical already). But I'm having trouble with the gfortran compiler, character strings and ...