Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
4679 connectés 

 


 Mot :   Pseudo :  
  Aller à la page :
 
 Page :   1  2  3  4  5  ..  1122  1123  1124  ..  1454  1455  1456  1457  1458  1459
Auteur Sujet :

blabla@web

n°2084258
flo850
moi je
Posté le 23-06-2011 à 14:57:13  profilanswer
 

Reprise du message précédent :
je pense que c'est pas mal que tu reprennes un peu les bases quand même


Message édité par flo850 le 23-06-2011 à 14:57:21

---------------

mood
Publicité
Posté le 23-06-2011 à 14:57:13  profilanswer
 

n°2084259
justbam
All Your Base Are Belong To Us
Posté le 23-06-2011 à 14:59:44  profilanswer
 

je pensais faire tout dans le php et ne pas passer par le css pour ma boucle if :/


---------------
▼ [ACH/VDS] ▼
n°2084264
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 23-06-2011 à 15:25:49  profilanswer
 

Ba non ; ton PHP sette la classe de ton div en fonction de si l'article est épuisé ou pas. Ton CSS sert à styler la classe, donc dans ton cas à mettre le bordel en rouge ou en vert. L'avantage, c'est que si un jour tu veux changer ta charte graphique en mettant le texte en italique noir sur fond rouge ou vert, ba t'as 2 trucs à faire dans le CSS sans toucher au PHP. Séparation fond/forme, tout ça [:dawao]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°2084272
the real m​oins moins
Posté le 23-06-2011 à 15:38:59  profilanswer
 

masklinn a écrit :


Tu peux pas, en JS brut. Tu peux te créer un helper qui fait ça, mais c'est tout.


 

masklinn a écrit :


Ce sont des accesseurs à la Smalltalk, tu fais get/set avec un seul nom [:spamafote]
 
Alors bien sûr t'es javateux, si t'as pas

Code :
  1. HashClickBean clickBean = clickBeanFactoryFactory.getClickBeanFactory().getClickBean();
  2. clickBean.setClickReactor(new ClickReactor());
  3. o.setClickHandlerBean(clickBean);


t'es pas content, donc bon :o


[:god]
non mais c'est surtout le nom qui est "con". click=action, verbe; or dans le premier cas (register) y'a aucune action de prise. Si ça s'appelait onClick(), ça serait deja "mieux", dans mon livre, en tous cas.


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°2084275
the real m​oins moins
Posté le 23-06-2011 à 15:45:28  profilanswer
 

Taiche a écrit :

Ba non ; ton PHP sette la classe de ton div en fonction de si l'article est épuisé ou pas. Ton CSS sert à styler la classe, donc dans ton cas à mettre le bordel en rouge ou en vert. L'avantage, c'est que si un jour tu veux changer ta charte graphique en mettant le texte en italique noir sur fond rouge ou vert, ba t'as 2 trucs à faire dans le CSS sans toucher au PHP. Séparation fond/forme, tout ça [:dawao]


d'un autre coté il aurait pu utiliser un attribut style :D Sale, mais ça marche.


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°2084282
masklinn
í dag viðrar vel til loftárása
Posté le 23-06-2011 à 15:50:46  profilanswer
 

the real moins moins a écrit :


[:god]
non mais c'est surtout le nom qui est "con". click=action, verbe; or dans le premier cas (register) y'a aucune action de prise. Si ça s'appelait onClick(), ça serait deja "mieux", dans mon livre, en tous cas.


Sauf que tu rentres en collision avec les attributs DOM correspondant, tu utilises le même nom pour un comportement différent.

Message cité 2 fois
Message édité par masklinn le 23-06-2011 à 15:51:54

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2084288
the real m​oins moins
Posté le 23-06-2011 à 15:57:47  profilanswer
 

masklinn a écrit :


Sauf que tu rentres en collision avec les attributs DOM correspondant, tu utilises le même nom pour un comportement différent.


tiens t'as édité salaud.
Là d'accord. Mais ça reste illisible :O
Et donc tu me dis que je peux faire
truc.click(...) ET truc.onClick(...) et qu'ils vont avoir un comportement différent ? [:pingouino]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°2084293
masklinn
í dag viðrar vel til loftárása
Posté le 23-06-2011 à 16:03:26  profilanswer
 

the real moins moins a écrit :


tiens t'as édité salaud.
Là d'accord. Mais ça reste illisible :O
Et donc tu me dis que je peux faire
truc.click(...) ET truc.onClick(...) et qu'ils vont avoir un comportement différent ? [:pingouino]


Non tu peux pas, c'est une collision dans la tête des gens, un objet jquery n'a pas d'attribut onclick. Mais les objets DOM dedans (et autour) oui, donc bon autant éviter de mixer comme ça.

 

Et ça permet aussi de rester cohérent entre .click (qui est un shorcut) et .bind/.trigger

Message cité 1 fois
Message édité par masklinn le 23-06-2011 à 16:04:06

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2084294
nraynaud
lol
Posté le 23-06-2011 à 16:03:40  profilanswer
 

masklinn a écrit :


Sauf que tu rentres en collision avec les attributs DOM correspondant, tu utilises le même nom pour un comportement différent.


et ben tu joues la feinte avec whenClick() par exemple ? parce que click() et click(fn) c'est pas des choses différentes avec le même nom ?


---------------
trainoo.com, c'est fini
n°2084295
the real m​oins moins
Posté le 23-06-2011 à 16:06:37  profilanswer
 

masklinn a écrit :


Non tu peux pas, c'est une collision dans la tête des gens, un objet jquery n'a pas d'attribut onclick. Mais les objets DOM dedans (et autour) oui, donc bon autant éviter de mixer comme ça.
 
Et ça permet aussi de rester cohérent entre .click (qui est un shorcut) et .bind/.trigger


[:bien]
(connaissait pas, évidemment. je fais que lire et tenter de fixer des trucs existants)


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
mood
Publicité
Posté le 23-06-2011 à 16:06:37  profilanswer
 

n°2084297
masklinn
í dag viðrar vel til loftárása
Posté le 23-06-2011 à 16:08:34  profilanswer
 

nraynaud a écrit :


et ben tu joues la feinte avec whenClick() par exemple ?


C'est moche.

nraynaud a écrit :

parce que click() et click(fn) c'est pas des choses différentes avec le même nom ?

that's the point. La majorité des accesseurs jquery sont comme ça (.val, .css, .attr, .height, etc...)


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2084298
the real m​oins moins
Posté le 23-06-2011 à 16:11:14  profilanswer
 

je suppose qu'on s'y fait, mais c'est pas "naturel" à lire :O


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°2084299
Dj YeLL
$question = $to_be || !$to_be;
Posté le 23-06-2011 à 16:15:01  profilanswer
 

je préfère le .addEvent('click', fn) de Mootools :o


---------------
Gamertag: CoteBlack YeLL
n°2084302
Profil sup​primé
Posté le 23-06-2011 à 16:23:14  answer
 

Yo,
Dites, j'suis un noob en javascript, est-ce que vous connaîtriez un bouquin qui se démarque des autres.
Même si je sais qu'un bouquin fera pas tout  [:poutrella]  
Vous même comment avez-vous débuté  [:klemton]

n°2084303
Dj YeLL
$question = $to_be || !$to_be;
Posté le 23-06-2011 à 16:24:20  profilanswer
 

http://javascript.info


---------------
Gamertag: CoteBlack YeLL
n°2084306
koskoz
They see me trollin they hatin
Posté le 23-06-2011 à 16:31:09  profilanswer
 

koskoz a écrit :

Remarquez le block dans la colonne de droite qui se répète jusqu'en bas de la page.  
 
http://koskoz.info/home.jpg
 
J'ai pensé à la technique faux column mais il savère que ce n'est pas utilisable pour deux choses :

  • Il y a des espaces verticaux entre mes blocs, je ne peux pas tricher en utilisant une bordure de plusieurs pixels étant donné que le bleu est en dégradé
  • Le premier bloc, tout en haut de la colonne a ses deux coins supérieur gauche et droite d'arrondis, le background appliqué sur le div "container" cache ces arrondis


Des idées, parce que moi je n'en ai aucune :/


 
up


---------------
Twitter
n°2084316
koskoz
They see me trollin they hatin
Posté le 23-06-2011 à 16:59:11  profilanswer
 

J'ai un div vide avec :

Code :
  1. margin-bottom: -2000px;
  2. padding-bottom: 2000px;


 
Et un overflow: hidden sur le block parent. C'est moche mais ça fonctionne.


---------------
Twitter
n°2084318
FlorentG
Posté le 23-06-2011 à 17:04:42  profilanswer
 

Tu veux pas foutre un display table-cell, et faire un fallback pour les autres [:petrus dei]

n°2084323
koskoz
They see me trollin they hatin
Posté le 23-06-2011 à 17:11:27  profilanswer
 

FlorentG a écrit :

Tu veux pas foutre un display table-cell, et faire un fallback pour les autres [:petrus dei]


 
Bof :o


---------------
Twitter
n°2084324
the real m​oins moins
Posté le 23-06-2011 à 17:13:26  profilanswer
 

y'a moyen de savoir en js si une image "existe" ou pas ? (i.e si le src pointait vers une url non-404)


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°2084329
Shinuza
This is unexecpected
Posté le 23-06-2011 à 17:28:25  profilanswer
 

the real moins moins a écrit :

y'a moyen de savoir en js si une image "existe" ou pas ? (i.e si le src pointait vers une url non-404)

T'as un onload et un complete sur les img.


---------------
Mains power can kill, and it will hurt the entire time you’re dying from it.
n°2084331
masklinn
í dag viðrar vel til loftárása
Posté le 23-06-2011 à 17:38:12  profilanswer
 

Il n'est pas possible de positioner du bordel de manière absolue par rapport à une table row avec juste des CSS si?


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2084350
nraynaud
lol
Posté le 23-06-2011 à 18:29:13  profilanswer
 

runkeeper : on met 28 CSS et 18 javascript dans la page et on les sert par un CDN [:filter]
(chargement en 15s)


---------------
trainoo.com, c'est fini
n°2084351
0x90
Posté le 23-06-2011 à 18:50:25  profilanswer
 

nraynaud a écrit :

runkeeper : on met 28 CSS et 18 javascript dans la page et on les sert par un CDN [:filter]
(chargement en 15s)


 
103 js ici  [:0x90]


---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°2084355
nraynaud
lol
Posté le 23-06-2011 à 19:20:30  profilanswer
 

0x90 a écrit :

103 js ici  [:0x90]


sur un cloudfront ?


---------------
trainoo.com, c'est fini
n°2084362
0x90
Posté le 23-06-2011 à 19:53:05  profilanswer
 

0x90 a écrit :

103 js ici  [:0x90]


Ah ben non, sur une part gandi, c'est bien assez  [:cosmoschtroumpf]

Message cité 1 fois
Message édité par 0x90 le 23-06-2011 à 19:53:15

---------------
Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck.
n°2084364
nraynaud
lol
Posté le 23-06-2011 à 20:05:59  profilanswer
 

0x90 a écrit :


Ah ben non, sur une part gandi, c'est bien assez  [:cosmoschtroumpf]


ben voilà (et y'a au moins 2 parts sur ce serveur, et j'ai vu passer un autre serveur avec 2Go de mémoire :o)


---------------
trainoo.com, c'est fini
n°2084365
gatsu35
Blablaté par Harko
Posté le 23-06-2011 à 20:25:41  profilanswer
 

masklinn a écrit :

Il n'est pas possible de positioner du bordel de manière absolue par rapport à une table row avec juste des CSS si?


Regarde la spec mais display table, table-row, table-cell ne peuvent pas prendre position: relative
C'est debile mais bon :/


---------------
Blablaté par Harko
n°2084376
tomsoft
Posté le 23-06-2011 à 21:31:26  profilanswer
 

nraynaud a écrit :
 
runkeeper : on met 28 CSS et 18 javascript dans la page et on les sert par un CDN mdss[{[:filter]}]
(chargement en 15s)
 
omg [:o]
 

Code :
  1. <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/layout.css" media="screen"/>
  2.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/fullscreen.css" media="screen"/>
  3.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/settings.css" media="screen"/><link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/create.css" media="screen"/>
  4.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/profile.css" media="screen"/>
  5.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/activities.css" media="screen"/>
  6.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/elite.css" media="screen"/>
  7.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/streetteam.css" media="screen"/>
  8.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/routes.css" media="screen"/>
  9.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/races.css" media="screen"/>
  10.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/edit.css" media="screen"/>
  11.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/android.css" media="screen"/>
  12.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/jquery.ui.datepicker.css" media="screen"/>
  13.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/howitworks.css" media="screen"/>
  14.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/buttons.css" media="screen"/>
  15.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/fitnessReports.css" media="screen"/>
  16.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/landingPage.css" media="screen"/>
  17.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/homepage.css" media="screen"/>
  18.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/apps.css" media="screen"/>
  19.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/about.css" media="screen"/>
  20.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/content.css" media="screen"/>
  21.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/login.css" media="screen"/>
  22.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/search.css" media="screen"/>
  23.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/healthgraph.css" media="screen"/>
  24.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/home.css" media="screen"/>
  25.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/uniform.agent.css" media="screen"/>
  26.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/jquery.alerts.css" media="screen"/>
  27.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/jquery.tiptip.css" media="screen"/>
  28.    <link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css/jquery.fancybox-1.3.1.css" media="screen"/>
  29.    <!--[if IE 7]><link type="text/css" rel="stylesheet" href="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/css
  30.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery-1.4.2.min.js"></script>
  31.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.cycle.all.min.js"></script>
  32.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.jcarousel.pack.js"></script>
  33.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.label-over.js"></script>
  34.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.uniform.js"></script>
  35.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery-ui-1.8.1.min.js"></script>
  36.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.validate.js"></script>
  37.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.alerts.js"></script>
  38.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.elastic.js"></script>
  39.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.tipTip.js"></script>
  40.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.fancybox-1.3.1.js"></script>
  41.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.easing-1.3.pack.js"></script>
  42.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/kronos/js/jquery.mousewheel-3.0.2.pack.js"></script>
  43.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/js/highcharts.js"></script>
  44.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/js/common_util.js"></script>
  45.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/js/ajaxfileupload.js"></script>
  46.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/js/races/common.js"></script>
  47.    <script type="text/javascript" src="http://d2b4ufapzmnxpw.cloudfront.net/build/2238/static/js/tagging/friendSelectionEditWidget.js"></script>

n°2084387
TheCreator
zwiiiii and then shbrouk tak
Posté le 23-06-2011 à 21:59:17  profilanswer
 

tomsoft a écrit :

nraynaud a écrit :
 
runkeeper : on met 28 CSS et 18 javascript dans la page et on les sert par un CDN mdss[{[:filter]}]
(chargement en 15s)
 
omg [:o]
 

Code :



 
ça me fait penser à mon site du taf :whistle:


---------------
La superstition c'est comme ceux qui réparent les fauteuils, il faut que le bois qu'ils rajoutent soit à peu près comme l'autre bois sinon ça se voit trop.
n°2084398
Shinuza
This is unexecpected
Posté le 23-06-2011 à 22:20:50  profilanswer
 

nraynaud a écrit :

runkeeper : on met 28 CSS et 18 javascript dans la page et on les sert par un CDN [:filter]
(chargement en 15s)

Sinon tu peux toujours merger ta merde.


---------------
Mains power can kill, and it will hurt the entire time you’re dying from it.
n°2084407
the real m​oins moins
Posté le 23-06-2011 à 22:46:38  profilanswer
 

Shinuza a écrit :

T'as un onload et un complete sur les img.


faudra que je test ça [:romf]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°2084408
FlorentG
Posté le 23-06-2011 à 22:54:08  profilanswer
 

Si j'ai bon souvenir, le onload foire si l'image sort du cache.
 
J'ai du bricoler avec un settimeout pour faire du polling (y'a même une propriété readystate qui se balade pour je sais plus quel navigo)

n°2084425
nraynaud
lol
Posté le 23-06-2011 à 23:46:53  profilanswer
 

Shinuza a écrit :

Sinon tu peux toujours merger ta merde.


moi oui, mais je bosse pas chez runkeeper ...


---------------
trainoo.com, c'est fini
n°2084428
the real m​oins moins
Posté le 23-06-2011 à 23:50:07  profilanswer
 

nraynaud a écrit :

runkeeper : on met 28 CSS et 18 javascript dans la page et on les sert par un CDN [:filter]
(chargement en 15s)


je pige le probleme du *nombre*, mais pas du cdn. pls xpln ?


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°2084429
nraynaud
lol
Posté le 24-06-2011 à 00:18:16  profilanswer
 

the real moins moins a écrit :


je pige le probleme du *nombre*, mais pas du cdn. pls xpln ?


Un Cdn c'est fait pour charger plus rapidement la page. Mais c'est 100 fois moins efficace et plus cher que compresser les fichiers ensemble


Message édité par nraynaud le 24-06-2011 à 00:20:33

---------------
trainoo.com, c'est fini
n°2084430
the real m​oins moins
Posté le 24-06-2011 à 00:25:44  profilanswer
 

ok mais si tout etait compressé en 1 fichier (1 js et 1 css), ça reste  interessant de le foutre sur un cdn donc ?


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°2084434
masklinn
í dag viðrar vel til loftárása
Posté le 24-06-2011 à 06:58:20  profilanswer
 

the real moins moins a écrit :

ok mais si tout etait compressé en 1 fichier (1 js et 1 css), ça reste  interessant de le foutre sur un cdn donc ?


oui, surtout si t'as un CDN avec des serveurs localisés. Ça permet aussi de mieux résister aux pics de traffic, puisque tu ne consommes pas de ressources sur le statique.


Message édité par masklinn le 24-06-2011 à 06:58:29

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2084472
SekYo
Posté le 24-06-2011 à 09:48:16  profilanswer
 

Ceci étant, pour avoir eu a subir quelques pics (notamment suite à des passages TV/radio) dans ma boite précédente, je pense que dans la majorité des cas c'est quand même le(s) serveur(s) applicatifs qui ont du mal à suivre non ? Parce qu'on avait genre un vieux SP chez OVH avec un ngnix pour servir le contenu static, le load bougeait très peu, alors que les servs apache/bdd souffraient beaucoup plus :D (bon après dans une appli très heavy-read avec beaucoup de cache...)

n°2084477
masklinn
í dag viðrar vel til loftárása
Posté le 24-06-2011 à 10:00:06  profilanswer
 

SekYo a écrit :

Ceci étant, pour avoir eu a subir quelques pics (notamment suite à des passages TV/radio) dans ma boite précédente, je pense que dans la majorité des cas c'est quand même le(s) serveur(s) applicatifs qui ont du mal à suivre non ? Parce qu'on avait genre un vieux SP chez OVH avec un ngnix pour servir le contenu static, le load bougeait très peu, alors que les servs apache/bdd souffraient beaucoup plus :D (bon après dans une appli très heavy-read avec beaucoup de cache...)


Bien sûr.


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2084482
the real m​oins moins
Posté le 24-06-2011 à 10:25:34  profilanswer
 

Et donc c'est effectivement con d'avoir 53 js et css mais ça fait pas de mal pour autant de les délocaliser. Ou bien


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  ..  1122  1123  1124  ..  1454  1455  1456  1457  1458  1459

Aller à :
Ajouter une réponse
 

Sujets relatifs
blabla 3blabla 2
PUTAIN HARKO TU AS FERM2 BLABLA ![Beaucoup de blabla pour rien : post à effacer] Compiler .bat
variable1="blabla + variable2 +blala : c'est possible ??[PHP & regex] "blabla blabla file.ext?point=444 blabla" Recupérer 444
mail("celine@hotmail.com"," sujet","blabla"); pose une err ! Help[MySQL] WHERE 'blabla' compris dans le champ truc
[blabla@olympe] Le topic du modo, dieu de la fibre et du monde[PHP / BlaBla - limite]
Plus de sujets relatifs à : blabla@web


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)