Find Jobs
Hire Freelancers

Make my custom style.css to be the first thing loaded on the head

$10-30 USD

Închis
Data postării: peste 5 ani în urmă

$10-30 USD

Plata la predare
I have a custo [login to view URL] which does the next thing: /* [login to view URL] MODS to optimize delivery 1 - Remove parent [login to view URL] 2 - Replace [login to view URL] with a date query string when modified 3 - Tansform [login to view URL] markup to loadCSS compatible */ // 1 - Remove parent [login to view URL] remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); // 2 - Replace [login to view URL] with a date query string when modified add_action( 'wp_enqueue_scripts', 'cache_buster_styles' ); function cache_buster_styles() { // Get the stylesheet info. $stylesheet_uri = get_stylesheet_directory_uri() . '/[login to view URL]'; $stylesheet_dir = get_stylesheet_directory() . '/[login to view URL]'; $last_modified = date ( "[login to view URL]", filemtime( $stylesheet_dir ) ); // Enqueue the stylesheet. wp_enqueue_style( CHILD_THEME_NAME , $stylesheet_uri, array(), $last_modified ); } // 3 - Tansform [login to view URL] markup to loadCSS compatible and add [login to view URL] on head position #1 add_filter( 'style_loader_tag', 'style_transform_loadCSS', 10, 1 ); function style_transform_loadCSS( $html, $handle ) { if ( $handle == CHILD_THEME_NAME ) { $search = array("rel='stylesheet' id='$handle-css'", "type='text/css' media='all'"); $replace = array("rel=\"preload\"", "as=\"style\" onload=\"this.rel='stylesheet'\""); $html = str_replace($search, $replace, $html)."<noscript>{$html}</noscript>"; } return $html; } But i want it to be loeaded the first thing on my <head> for faster css loading, the css is always displayed after all my head calls, need to move it in the top part of the head. I need a mod for my [login to view URL] to do this
ID-ul proiectului: 18321528

Despre proiect

4 propuneri
Proiect la distanță
Activ: 5 ani în urmă

Vrei să câștigi bani?

Avantajele de a licita pe platforma Freelancer

Stabilește bugetul și intervalul temporal
Îți primești plata pentru serviciile prestate
Evidențiază-ți propunerea
Te înregistrezi și licitezi gratuit pentru proiecte
4 freelanceri plasează o ofertă medie de $19 USD pentru proiect
Avatarul utilizatorului
Hello. Wordpress expert ready to help you with script loading. I have more 7 years of Wordpress development experience and more 400 good reviews so all will be done with best quality. Free bugfinxing support. We can always make deal on price. Tnx, and hope to hear you soon.
$25 USD în 1 zi
4,9 (598 recenzii)
8,1
8,1
Avatarul utilizatorului
Hello. Can you post your WordPress website URL? Do you use Genesis theme? --- Thank you. Alexey
$15 USD în 1 zi
5,0 (214 recenzii)
6,7
6,7
Avatarul utilizatorului
Hi, could you please clarify whether you need it to be the first script/style that is loaded or whether you need it to be the first line after the <head> tag? Thanks & regards, A. Sengupta
$12 USD în 3 zile
4,7 (17 recenzii)
4,8
4,8
Avatarul utilizatorului
I read through the job details carefully a website and I am absolutely sure that I can do the project very well. All the work that I'll do for you summarized below: Homepage designs and inner pages PSD mockups. HTML5 development of all the designs (mobile and other devices compatible) Custom Theme development and implementation of all module. Free maintenance of 3 months including tutorials, small updates, issues fixes and monthly backups of the site. Let me quickly introduce myself: I have already delivered 20+ websites successfully, I'm one of the best developers on freelancer. I'm having 4+ years of wonderful experience as a web developer and I'm very passionate about my work, coding standards and design quality standards. Hope you like my work and consider me for your job. Looking forward to hearing from your side. Thanks and Regards.
$25 USD în 1 zi
5,0 (8 recenzii)
3,7
3,7

Despre client

Steagul MEXICO
Durango, Mexico
5,0
115
Metoda de plată a fost confirmată
Membru din aug. 14, 2009

Verificarea clientului

Mulțumim! Ți-am trimis prin e-mail linkul pe care trebuie să-l accesezi pentru a revendica creditul gratuit.
A apărut o eroare la trimiterea e-mailului. Încearcă din nou.
Utilizatori înregistrați Totalul proiectelor postate
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Se încarcă previzualizarea
S-a oferit permisiunea de depistare a locației.
Ți-a expirat sesiunea pentru conectare sau te-ai deconectat. Conectează-te din nou.